- Status changed to Postponed: needs info
about 2 years ago 7:17pm 17 January 2023 - Status changed to Fixed
12 months ago 2:59pm 26 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Current configuration in my local.
Drupal version : 9.4.8
Rector : 0.13.1
PHPStan: 1.9.2
I am facing below issue when I run rector command. Please find attached screenshot.
PHP Fatal error: Uncaught _PHPStan_9a6ded56a\Nette\DI\ServiceCreationException: Service of type PHPStan\PhpDocParser\Parser\PhpDocParser: Unable to pass specified arguments to PhpDocParser::__construct(). in phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php:421
Stack trace:
#0 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php(170): _PHPStan_9a6ded56a\Nette\DI\Resolver::autowireArguments(Object(ReflectionMethod), Array, Object(Closure))
#1 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Definitions/ServiceDefinition.php(158): _PHPStan_9a6ded56a\Nette\DI\Resolver->completeStatement(Object(_PHPStan_9a6ded56a\Nette\DI\Definitions\Statement))
#2 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php(123): _PHPStan_9a6ded56a\Nette\DI\Definitions\ServiceDefinition->complete(Object(_PHPStan_9a6ded56a\Nette\DI\Resolver))
#3 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/ContainerBuilder.php(252): _PHPStan_9a6ded56a\Nette\DI\Resolver->completeDefinition(Object(_PHPStan_9a6ded56a\Nette\DI\Definitions\ServiceDefinition))
#4 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Compiler.php(203): _PHPStan_9a6ded56a\Nette\DI\ContainerBuilder->complete()
#5 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Compiler.php(159): _PHPStan_9a6ded56a\Nette\DI\Compiler->processBeforeCompile()
#6 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/ContainerLoader.php(99): _PHPStan_9a6ded56a\Nette\DI\Compiler->compile()
#7 phar:///var/www/html/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/ContainerLoader.php(66): _PHPStan_9a6ded56a\Nette\DI\ContainerLoader->generate('Container_e3dd6...', Array)
Fixed
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.