We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b7a10 commit 9db284cCopy full SHA for 9db284c
Normalizer/GetSetMethodNormalizer.php
@@ -61,7 +61,7 @@ public function hasCacheableSupportsMethod(): bool
61
}
62
63
/**
64
- * Checks if the given class has any get{Property} method.
+ * Checks if the given class has any getter method.
65
*/
66
private function supports(string $class): bool
67
{
@@ -77,7 +77,7 @@ private function supports(string $class): bool
77
78
79
80
- * 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.
81
82
private function isGetMethod(\ReflectionMethod $method): bool
83
0 commit comments