We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2ee306 commit a30c743Copy full SHA for a30c743
1 file changed
src/TI/TSitemap.php
@@ -25,9 +25,10 @@ public static function getSitemap() : array
25
26
foreach ($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method)
27
{
28
- if ($method->class !== $reflection->getName() ||
29
- substr($method->name, 0, 6) !== 'action' ||
30
- !$method->hasAnnotation('sitemap'))
+ if ($method->isStatic() ||
+ !$method->isPublic() ||
+ !$method->hasAnnotation('sitemap') ||
31
+ substr($method->name, 0, 6) !== 'action')
32
33
continue;
34
}
0 commit comments