You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException(\sprintf('Method "%s::%s()" should return an instance of "%s" (given: "%s").', $component::class, $modifier, LiveProp::class, get_debug_type($modifiedLiveProp)));
if ($typeinstanceof \ReflectionUnionType || $typeinstanceof \ReflectionIntersectionType) {
79
-
thrownew \LogicException(\sprintf('Union or intersection types are not supported for LiveProps. You may want to change the type of property %s in %s.', $property->getName(), $property->getDeclaringClass()->getName()));
80
-
}
80
+
// BC layer when "symfony/type-info" is not available
81
+
if (!method_exists($this->propertyTypeExtractor, 'getType')) {
82
+
$type = $property->getType();
83
+
if ($typeinstanceof \ReflectionUnionType || $typeinstanceof \ReflectionIntersectionType) {
84
+
thrownew \LogicException(\sprintf('Union or intersection types are not supported for LiveProps. You may want to change the type of property %s in %s.', $property->getName(), $property->getDeclaringClass()->getName()));
if ($typeinstanceof UnionType && !$typeinstanceof NullableType || $typeinstanceof IntersectionType) {
121
+
thrownew \LogicException(\sprintf('Union or intersection types are not supported for LiveProps. You may want to change the type of property "%s" in "%s".', $propertyName, $className));
0 commit comments