Should the return type not be PropertyMetadata|null?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
41
*/
42
3
public function get(string $name): ?PropertyMetadata
43
{
44
3
if (!array_key_exists($name, $this->properties)) {
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.