Yaffs site version 1.1
[yaffs-website] / vendor / psy / psysh / src / Psy / CodeCleaner / AssignThisVariablePass.php
index 68beb3badac24e4946595663b2628250529c89d2..b1b3eaf1dc034e0112c2433e7196e648032795e8 100644 (file)
@@ -11,7 +11,7 @@
 
 namespace Psy\CodeCleaner;
 
-use PhpParser\Node as Node;
+use PhpParser\Node;
 use PhpParser\Node\Expr\Assign;
 use PhpParser\Node\Expr\Variable;
 use Psy\Exception\FatalErrorException;
@@ -33,7 +33,7 @@ class AssignThisVariablePass extends CodeCleanerPass
     public function enterNode(Node $node)
     {
         if ($node instanceof Assign && $node->var instanceof Variable && $node->var->name === 'this') {
-            throw new FatalErrorException('Cannot re-assign $this');
+            throw new FatalErrorException('Cannot re-assign $this', 0, E_ERROR, null, $node->getLine());
         }
     }
 }