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
/app/web/vendor/bin/phpat /app/phpat.yaml
Deprecated: Array and string offset access syntax with curly braces is deprecated in /app/web/vendor/sentry/sentry/lib/Raven/Client.php on line 331
Notice: Undefined property: PhpParser\Node\Stmt\Class_::$namespacedNamein /app/web/vendor/carlosas/phpat/src/Parser/NameCollector.php on line 23
An error occurred while running phpat :(
Please consider opening an issue: http://github.com/carlosas/phpat/issues
Call to a member functiontoString() on null
#0 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(153): PhpAT\Parser\NameCollector->leaveNode(Object(PhpParser\Node\Stmt\Class_))#1 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(146): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Expr\New_))#2 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Return_))#3 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)#4 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\ClassMethod))#5 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)#6 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Class_))#7 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)#8 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Namespace_))#9 /app/web/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(91): PhpParser\NodeTraverser->traverseArray(Array)#10 /app/web/vendor/carlosas/phpat/src/Parser/MapBuilder.php(70): PhpParser\NodeTraverser->traverse(Array)#11 /app/web/vendor/carlosas/phpat/src/App.php(63): PhpAT\Parser\MapBuilder->build()#12 /app/web/vendor/carlosas/phpat/phpat(47): PhpAT\App->execute()
Could you specify which version of phpat are you using? And PHP version?
Seems like the NameResolver is not able to transform a class into a namespaced ClassLike node.
Some extra information about the code, does it include anonymous classes or some other not-so-mainstream technique? In this case a piece of code would be appreciated.
Bug Description
Additional context
My config
My test:
The text was updated successfully, but these errors were encountered: