diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e0e6fb2..775c61c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -56,6 +56,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" dependencies: - "highest" @@ -101,6 +102,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" dependencies: - "highest" @@ -146,6 +148,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" dependencies: - "lowest" @@ -190,7 +193,7 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.4" dependencies: - "highest" diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php index a36a954..730b35e 100644 --- a/composer-dependency-analyser.php +++ b/composer-dependency-analyser.php @@ -1,5 +1,6 @@ ignoreErrorsOnPackage('symfony/polyfill-php83', [ErrorType::UNUSED_DEPENDENCY]); } +if (!class_exists(DataProvider::class)) { + $config->ignoreUnknownClasses([DataProvider::class]); +} + return $config; diff --git a/composer.json b/composer.json index 34a9304..f64fa16 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": ">=8.1", "doctrine/dbal": "^3.4 || ^4.0", - "doctrine/doctrine-bundle": "^1.9 || ^2.0", + "doctrine/doctrine-bundle": "^1.9 || ^2.0 || ^3.0", "dragonmantank/cron-expression": "^2.2 || ^3.0", "symfony/config": "^5.4 || ^6.0 || ^7.0", "symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0", @@ -28,7 +28,7 @@ "ergebnis/composer-normalize": "^2.42", "matthiasnoback/symfony-dependency-injection-test": "^4.3 || ^5.0 || ^6.0", "phpdocumentor/reflection-docblock": "^5.3", - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.5 || ^12.0", "psalm/plugin-phpunit": "^0.19", "roave/security-advisories": "dev-latest", "shipmonk/composer-dependency-analyser": "^1.8", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e7fcc4e..250c949 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,14 +1,13 @@ - - - - src/ - - - - - tests - - + + + + tests + + + + + src/ + + diff --git a/tests/Validator/CronExpressionTest.php b/tests/Validator/CronExpressionTest.php index f984f25..aa59958 100644 --- a/tests/Validator/CronExpressionTest.php +++ b/tests/Validator/CronExpressionTest.php @@ -5,6 +5,7 @@ namespace Setono\CronExpressionBundle\Tests\Validator; use Cron\CronExpression; +use PHPUnit\Framework\Attributes\DataProvider; use Setono\CronExpressionBundle\Validator\CronExpression as Constraint; use Setono\CronExpressionBundle\Validator\CronExpressionValidator; use stdClass; @@ -69,7 +70,10 @@ public function testExpectsStringCompatibleValue(): void * @dataProvider getInvalidValues * * @param mixed $value + * + * @psalm-suppress UndefinedAttributeClass */ + #[DataProvider('getInvalidValues')] public function testInvalidValues($value, string $valueAsString): void { $constraint = new Constraint('myMessage');