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
Argument 5 passed to PHPStan\Analyser\Scope::__construct() must be an instance of PHPStan\Analyser\ScopeContext, instance of PHPStan\Rules\Properties\PropertyReflectionFinder given
#104
Trying to run on core path module, finding 35 instances of
Line tests/src/Unit/Field/PathFieldDefinitionTest.php
Internal error: Argument 5 passed to PHPStan\Analyser\Scope::__construct() must be an instance of PHPStan\Analyser\ScopeContext, instance of
PHPStan\Rules\Properties\PropertyReflectionFinder given, called in
phar:https:///[...]/web/core/modules/path/drupal-check.phar/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php on line 103
Run PHPStan with --debug option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new
This sounds like a potential bleeding edge dependency problem.
Console output
Fatal error: Uncaught TypeError: Argument 5 passed to PHPStan\Analyser\ScopeFactory::__construct() must implement interface PHPStan\DependencyInjection\Container, instance of PHPStan\Rules\Properties\PropertyReflectionFinder given, called in /private/var/folders/pz/nxd0q9hs15d2n2yqljmhxzbm0000gn/T/phpstan/cache/nette.configurator/Container_6fc5ccf691.php on line 4420 and defined in [...]/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php:28
Stack trace:
#0 /private/var/folders/pz/nxd0q9hs15d2n2yqljmhxzbm0000gn/T/phpstan/cache/nette.configurator/Container_6fc5ccf691.php(4420): PHPStan\Analyser\ScopeFactory->__construct('PHPStan\\Analyse...', Object(PHPStan\Broker\Broker), Object(PhpParser\PrettyPrinter\Standard), Object(PHPStan\Analyser\TypeSpecifier), Object(PHPStan\Rules\Properties\PropertyReflectionFinder), Object(PHPStan\DependencyInjection\Nette\NetteContainer))
#1 phar:https:///[...]/web/core/modules/path/drupal-check.phar/vendor/nette/di/src/DI/Container.php(189 in [...]/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php on line 28
Gabors-MacBook-Pro:path gaborhojtsy$ php drupal-check.phar tests/src/Unit/Field/PathFieldDefinitionTest.php -vvv
Current working directory: [...]/web/core/modules/path
Using Drupal root: [...]/web
Using vendor root: [...]/vendor
Using autoloader: [...]/vendor/autoload.php
Fatal error: Uncaught TypeError: Argument 5 passed to PHPStan\Analyser\ScopeFactory::__construct() must implement interface PHPStan\DependencyInjection\Container, instance of PHPStan\Rules\Properties\PropertyReflectionFinder given, called in /private/var/folders/pz/nxd0q9hs15d2n2yqljmhxzbm0000gn/T/phpstan/cache/nette.configurator/Container_6fc5ccf691.php on line 4420 and defined in [...]/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php:28
Stack trace:
#0 /private/var/folders/pz/nxd0q9hs15d2n2yqljmhxzbm0000gn/T/phpstan/cache/nette.configurator/Container_6fc5ccf691.php(4420): PHPStan\Analyser\ScopeFactory->__construct('PHPStan\\Analyse...', Object(PHPStan\Broker\Broker), Object(PhpParser\PrettyPrinter\Standard), Object(PHPStan\Analyser\TypeSpecifier), Object(PHPStan\Rules\Properties\PropertyReflectionFinder), Object(PHPStan\DependencyInjection\Nette\NetteContainer))
#1 phar:https:///[...]/web/core/modules/path/drupal-check.phar/vendor/nette/di/src/DI/Container.php(189 in [...]/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php on line 28```
The text was updated successfully, but these errors were encountered:
I installed drupal-check globally with composer. My specs:
OS: MacOS
PHP: 7.1.32
Drupal Core: 8.6.15
Since I am mostly supporting contrib modules, I decided to do what usage step 1 recommends, which is running composer create-project drupal-composer/drupal-project:8.x-dev drupal --no-interaction --stability=dev, and drupal-check did work in there. So, for now, I'll assume that perhaps I'm behind in my local codebase with a few composer packages, and will focus on working on this other environment for now.
How is drupal-check installed?
Environment:
Describe the bug
Downloaded drupal-check.phar with curl -O -L https://github.com/mglaman/drupal-check/releases/latest/download/drupal-check.phar
Trying to run on core path module, finding 35 instances of
Line tests/src/Unit/Field/PathFieldDefinitionTest.php
This sounds like a potential bleeding edge dependency problem.
Console output
The text was updated successfully, but these errors were encountered: