mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-03 06:46:27 +02:00
intercept more php notice & warning on expression testing
This commit is contained in:
parent
d699a2db80
commit
a426c699f9
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue