Skip to content

Commit

Permalink
Update TSitemap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Apr 26, 2018
1 parent f2ee306 commit a30c743
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/TI/TSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public static function getSitemap() : array

foreach ($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method)
{
if ($method->class !== $reflection->getName() ||
substr($method->name, 0, 6) !== 'action' ||
!$method->hasAnnotation('sitemap'))
if ($method->isStatic() ||
!$method->isPublic() ||
!$method->hasAnnotation('sitemap') ||
substr($method->name, 0, 6) !== 'action')
{
continue;
}
Expand Down

0 comments on commit a30c743

Please sign in to comment.