The expression return $this->reflector->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...
47
}
48
49
/**
50
* @param object $object
51
* @param mixed $value
52
*
53
* @return void
54
*/
55
7
public function setValue(object $object, mixed $value): void