projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yaffs site version 1.1
[yaffs-website]
/
vendor
/
psy
/
psysh
/
src
/
Psy
/
CodeCleaner
/
AssignThisVariablePass.php
diff --git
a/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
b/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
index 68beb3badac24e4946595663b2628250529c89d2..b1b3eaf1dc034e0112c2433e7196e648032795e8 100644
(file)
--- a/
vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
+++ b/
vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
@@
-11,7
+11,7
@@
namespace Psy\CodeCleaner;
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;
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') {
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()
);
}
}
}
}
}
}