We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7019d57 commit b13e278Copy full SHA for b13e278
src/Visitor/Twig/TwigVisitor.php
@@ -58,6 +58,12 @@ public static function create()
58
*/
59
protected function doEnterNode($node)
60
{
61
+ // If not initialized
62
+ if (null === $this->collection) {
63
+ // We have not executed BaseVisitor::init which means that we are not currently extracting
64
+ return $node;
65
+ }
66
+
67
return $this->worker->work($node, $this->collection, function () {
68
return $this->getAbsoluteFilePath();
69
});
0 commit comments