added the source for all sandbox security exceptions

This commit is contained in:
Fabien Potencier
2019-04-16 18:31:51 +02:00
parent d8cb0f9764
commit a165ce67d4
5 changed files with 40 additions and 10 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class CheckToStringNode extends AbstractExpression
$compiler
->raw('$this->sandbox->ensureToStringAllowed(')
->subcompile($this->getNode('expr'))
->raw(')')
->raw(', $this->source)')
;
}
}