diff --git a/Normalizer/GetSetMethodNormalizer.php b/Normalizer/GetSetMethodNormalizer.php index 02cb11f44..aacce5092 100644 --- a/Normalizer/GetSetMethodNormalizer.php +++ b/Normalizer/GetSetMethodNormalizer.php @@ -61,7 +61,7 @@ public function hasCacheableSupportsMethod(): bool } /** - * Checks if the given class has any get{Property} method. + * Checks if the given class has any getter method. */ private function supports(string $class): bool { @@ -77,7 +77,7 @@ private function supports(string $class): bool } /** - * Checks if a method's name is get.* or is.*, and can be called without parameters. + * Checks if a method's name matches /^(get|is|has).+$/ and can be called non-statically without parameters. */ private function isGetMethod(\ReflectionMethod $method): bool {