2

当我运行rector脚本时bin/cake upgrade rector --rules cakephp40 ../project/src,出现以下错误:

Notice: Undefined property: PhpParser\Node\Stmt\ClassMethod::$attrGroups in phar:///Users/uscreen/Sites/upgrade/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 216

Warning: Invalid argument supplied for foreach() in phar:///Users/uscreen/Sites/upgrade/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 216

Fatal error: PHPStan\Analyser\MutatingScope cannot implement PHPStan\Analyser\Scope - it is not an interface in phar:///Users/uscreen/Sites/upgrade/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php on line 92

然后脚本退出,没有进行任何更改,但它会回显Rector applied successfully。我不知道从哪里开始调试这个。

4

0 回答 0