api-platform / schema-generator

PHP Model Scaffolding from Schema.org and other RDF vocabularies
https://api-platform.com/docs/schema-generator/
MIT License
453 stars 108 forks source link

CI pipeline issue: PHPUnit TestSuite.php generates PHP fatal error #419

Closed Angatar closed 7 months ago

Angatar commented 7 months ago

It seems there is currently an issue with the PHPUnit version used in the CI pipeline:

PHP Fatal error: Declaration of PHPUnit\Framework\TestSuite::run(): void must be compatible with PHPUnit\Framework\Test::run(?PHPUnit\Framework\TestResult $result = null): PHPUnit\Framework\TestResult in /home/runner/work/schema-generator/schema-generator/vendor/phpunit/phpunit/src/Framework/TestSuite.php on line 318

Can you fix it?

Details: https://github.com/api-platform/schema-generator/actions/runs/7142451910/job/19451775510?pr=415

Originally posted by @Angatar in https://github.com/api-platform/schema-generator/issues/415#issuecomment-1847278764

BTW: I got no error on the local runs of the PHPunit tests with PHP 7.4, 8.0, 8.1, 8.2 and 8.3

Angatar commented 7 months ago

@dunglas #420 fixed it, thanks!

PR #421 now pass CI :)