From a30c74357ae3115117d0bcdbdb2b5cd21d9c315c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pel=C3=AD=C5=A1ek?= Date: Thu, 26 Apr 2018 12:15:45 +0200 Subject: [PATCH] Update TSitemap.php --- src/TI/TSitemap.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TI/TSitemap.php b/src/TI/TSitemap.php index 5f4e692..79699a0 100644 --- a/src/TI/TSitemap.php +++ b/src/TI/TSitemap.php @@ -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; }