The expression return $parameters[0]->getType() could return the type ReflectionType which includes types incompatible with the type-hinted return ReflectionNamedType|null. Consider adding an additional type-check to rule them out.
Loading history...
50
}
51
52
/**
53
* @param object $object
54
* @param mixed $value
55
*
56
* @throws ReflectionException
57
*
58
* @return void
59
*/
60
5
public function setValue(object $object, mixed $value): void