From c0f626e9bd2ff66736c7b9d9f9de0c4de36ac037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 19 Jul 2023 23:01:29 +0200 Subject: [PATCH] Fixed phpstan issue --- src/Services/LogSystem/TimeTravel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/LogSystem/TimeTravel.php b/src/Services/LogSystem/TimeTravel.php index bffdb038..400e85f5 100644 --- a/src/Services/LogSystem/TimeTravel.php +++ b/src/Services/LogSystem/TimeTravel.php @@ -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();