You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
We are getting the following errors when we use autoload validation with php:8.1
The text was updated successfully, but these errors were encountered: