Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpcq support for php 8 #8

Open
sashikamw opened this issue Aug 25, 2023 · 0 comments
Open

phpcq support for php 8 #8

sashikamw opened this issue Aug 25, 2023 · 0 comments
Labels

Comments

@sashikamw
Copy link

We are getting the following errors when we use autoload validation with php:8.1

Fatal error: During inheritance of IteratorAggregate: Uncaught ErrorException: Return type of PhpCodeQuality\AutoloadValidation\AutoloadValidator\ClassMap::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/ClassMap.php:132
Stack trace:
#0 /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/ClassMap.php(28): {closure}(8192, 'Return type of ...', '/drone/src/src/...', 132)
#1 /drone/src/src/vendor/composer/ClassLoader.php(576): include('/drone/src/src/...')
#2 /drone/src/src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/drone/src/src/...')
#3 /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/AbstractValidator.php(102): Composer\Autoload\ClassLoader->loadClass('PhpCodeQuality\\...')
#4 /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/AutoloadValidatorFactory.php(137): PhpCodeQuality\AutoloadValidation\AutoloadValidator\AbstractValidator->__construct('autoload.psr-4', Array, '/drone/src/src', Object(PhpCodeQuality\AutoloadValidation\ClassMapGenerator), Object(PhpCodeQuality\AutoloadValidation\Report\Report))
#5 /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/AutoloadValidatorFactory.php(182): PhpCodeQuality\AutoloadValidation\AutoloadValidator\AutoloadValidatorFactory->createValidator('autoload', 'psr-4', Array)
#6 /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/AutoloadValidatorFactory.php(85): PhpCodeQuality\AutoloadValidation\AutoloadValidator\AutoloadValidatorFactory->createValidatorsFromSection('autoload', Array)
#7 /drone/src/src/vendor/phpcq/autoload-validation/src/Command/CheckAutoloading.php(147): PhpCodeQuality\AutoloadValidation\AutoloadValidator\AutoloadValidatorFactory->createFromComposerJson(Array)
#8 /drone/src/src/vendor/symfony/console/Command/Command.php(255): PhpCodeQuality\AutoloadValidation\Command\CheckAutoloading->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /drone/src/src/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /drone/src/src/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(PhpCodeQuality\AutoloadValidation\Command\CheckAutoloading), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /drone/src/src/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /drone/src/src/vendor/phpcq/autoload-validation/bin/check-autoloading.php(92): Symfony\Component\Console\Application->run()
#13 /drone/src/src/vendor/bin/check-autoloading.php(119): include('/drone/src/src/...')
#14 {main} in /drone/src/src/vendor/phpcq/autoload-validation/src/AutoloadValidator/ClassMap.php on line 28
@discordier discordier added the bug label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants