Skip to content

Commit 9db284c

Browse files
guilliamxavierfabpot
authored andcommitted
[Serializer][Validator] Update some phpDoc relative to "getters"
1 parent 00b7a10 commit 9db284c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Normalizer/GetSetMethodNormalizer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function hasCacheableSupportsMethod(): bool
6161
}
6262

6363
/**
64-
* Checks if the given class has any get{Property} method.
64+
* Checks if the given class has any getter method.
6565
*/
6666
private function supports(string $class): bool
6767
{
@@ -77,7 +77,7 @@ private function supports(string $class): bool
7777
}
7878

7979
/**
80-
* Checks if a method's name is get.* or is.*, and can be called without parameters.
80+
* Checks if a method's name matches /^(get|is|has).+$/ and can be called non-statically without parameters.
8181
*/
8282
private function isGetMethod(\ReflectionMethod $method): bool
8383
{

0 commit comments

Comments
 (0)