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:
parent
715afd79ec
commit
47b81c1af3
9 changed files with 34 additions and 64 deletions
controllers/internals
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue