mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 05:54:32 +02:00
Fixed phpstan issue
This commit is contained in:
parent
2ddfe48aba
commit
c0f626e9bd
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ class TimeTravel
|
|||
|
||||
//Check if the property is an BackedEnum, then convert the int or float value to an enum instance
|
||||
if ((is_string($new_value) || is_int($new_value))
|
||||
&& $property->getType() !== null
|
||||
&& $property->getType() instanceof \ReflectionNamedType
|
||||
&& is_a($property->getType()->getName(), \BackedEnum::class, true)) {
|
||||
/** @phpstan-var class-string<\BackedEnum> $enum_class */
|
||||
$enum_class = $property->getType()->getName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue