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
Trying to use drupal-check -ad -vvv web/modules/custom/ but getting fatal
Not clear how to get which line causes it, because I have this issue only in 1 module but phpstorm shown all fine with it
Less verbose tells... but no way to pass --debug
------ ------------------------------------------------------------------------------------
Internal error: Call to undefined method PhpParser\Node\Name::isSpecialClassName()
Run PHPStan with --debug option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new
The -vvv tells
Performing deprecation checks
Performing analysis checks
Current working directory: /mnt
Using Drupal root: /mnt/web
Using vendor root: /mnt/vendor
Using autoloader: /mnt/vendor/autoload.php
/mnt/web/modules/custom/custom_stock/custom_stock.module
PHP Fatal error: Uncaught Error: Call to a member function isSpecialClassName() on string in phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:1004
Stack trace:
#0 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php(1230): PhpParser\ParserAbstract->checkUseUse(Object(PhpParser\Node\Stmt\UseUse), 3)
#1 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(284): PhpParser\Parser\Php7->PhpParser\Parser\{closure}(3)
#2 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(158): PhpParser\ParserAbstract->doParse()
#3 phar:///usr/local/bin/drupal-check/vendor/phpstan/phpstan/src/Parser/DirectParser.php(43): PhpParser\ParserAbstract->parse('<?php\n\n/**\n * @...', Object(PhpParser\ErrorHandler\Collecting))
#4 phar:///usr/local/bin/drupal-check/vendor/phpstan/phpstan/src/Parser/DirectParser.php(33): PHPStan\Parser\DirectParser->parseString('<?php\n\n/**\n * @...')
#5 phar:///usr/lo in phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 1004
Fatal error: Uncaught Error: Call to a member function isSpecialClassName() on string in phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:1004
Stack trace:
#0 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php(1230): PhpParser\ParserAbstract->checkUseUse(Object(PhpParser\Node\Stmt\UseUse), 3)
#1 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(284): PhpParser\Parser\Php7->PhpParser\Parser\{closure}(3)
#2 phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(158): PhpParser\ParserAbstract->doParse()
#3 phar:///usr/local/bin/drupal-check/vendor/phpstan/phpstan/src/Parser/DirectParser.php(43): PhpParser\ParserAbstract->parse('<?php\n\n/**\n * @...', Object(PhpParser\ErrorHandler\Collecting))
#4 phar:///usr/local/bin/drupal-check/vendor/phpstan/phpstan/src/Parser/DirectParser.php(33): PHPStan\Parser\DirectParser->parseString('<?php\n\n/**\n * @...')
#5 phar:///usr/lo in phar:///usr/local/bin/drupal-check/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 1004
The text was updated successfully, but these errors were encountered:
Trying to use
drupal-check -ad -vvv web/modules/custom/
but getting fatalNot clear how to get which line causes it, because I have this issue only in 1 module but phpstorm shown all fine with it
Less verbose tells... but no way to pass
--debug
The
-vvv
tellsThe text was updated successfully, but these errors were encountered: