1
0
Fork 0
mirror of https://github.com/RaspbianFrance/raspisms.git synced 2025-05-06 16:26:26 +02:00

fix a few error, undefined vars, update phpstan, fix adapter data preset on edit phone

This commit is contained in:
osaajani 2023-02-06 04:35:08 +01:00
parent 715afd79ec
commit 47b81c1af3
9 changed files with 34 additions and 64 deletions
controllers/internals

View file

@ -44,11 +44,6 @@ class ExpressionProvider implements ExpressionFunctionProviderInterface
return sprintf('isset(%1$s) && is_a(%1$s, \'DateTime\') && %1$s->format(\'m-d\') == (new \\DateTime())->format(\'m-d\')', $birthdate);
}, function ($arguments, DateTime $birthdate)
{
if (!($birthdate ?? false))
{
return false;
}
return $birthdate->format('m-d') == (new DateTime())->format('m-d');
});