intercept more php notice & warning on expression testing
This commit is contained in:
parent
d699a2db80
commit
a426c699f9
|
@ -43,7 +43,7 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->expression_language->evaluate($condition, $datas);
|
$this->expression_language->parse($condition, array_keys($datas));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,10 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
catch (\Throwable $t)
|
||||||
|
{
|
||||||
|
//Just ignore non critical php warning and notice
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue