Skip to content

Commit a30c743

Browse files
authored
Update TSitemap.php
1 parent f2ee306 commit a30c743

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/TI/TSitemap.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ public static function getSitemap() : array
2525

2626
foreach ($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method)
2727
{
28-
if ($method->class !== $reflection->getName() ||
29-
substr($method->name, 0, 6) !== 'action' ||
30-
!$method->hasAnnotation('sitemap'))
28+
if ($method->isStatic() ||
29+
!$method->isPublic() ||
30+
!$method->hasAnnotation('sitemap') ||
31+
substr($method->name, 0, 6) !== 'action')
3132
{
3233
continue;
3334
}

0 commit comments

Comments
 (0)