Skip to content

Commit

Permalink
Make more nullable types explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 19, 2024
1 parent ff5b652 commit 79209ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extractor/ReflectionExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ private function getMutatorMethod(string $class, string $property): ?array
continue;
}

// Parameter can be optional to allow things like: method(array $foo = null)
// Parameter can be optional to allow things like: method(?array $foo = null)
if ($reflectionMethod->getNumberOfParameters() >= 1) {
return [$reflectionMethod, $prefix];
}
Expand Down

0 comments on commit 79209ee

Please sign in to comment.