Skip to content

Commit

Permalink
add missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 15, 2023
1 parent 4a1ff08 commit 13cfebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/ExpressionLanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@ public function testNullSafeEvaluateFails($expression, $foo, $message)
/**
* @dataProvider provideInvalidNullSafe
*/
public function testNullSafeCompileFails($expression)
public function testNullSafeCompileFails($expression, $foo)
{
$expressionLanguage = new ExpressionLanguage();

$this->expectException(\ErrorException::class);

set_error_handler(static function (int $errno, string $errstr, string $errfile = null, int $errline = null): bool {
if ($errno & (\E_WARNING | \E_USER_WARNING)) {
if ($errno & (\E_WARNING | \E_USER_WARNING) && (str_contains($errstr, 'Attempt to read property') || str_contains($errstr, 'Trying to access'))) {
throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
}

Expand Down

0 comments on commit 13cfebf

Please sign in to comment.