Skip to content

Commit 8364647

Browse files
author
Sergey Danilchenko
committed
simplify runtime extension path detection
1 parent b41d686 commit 8364647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Knp/Menu/Twig/MenuExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getLastModified(): int
6161
{
6262
return max(
6363
(int) filemtime(__FILE__),
64-
(int) filemtime((string) (new \ReflectionClass(MenuRuntimeExtension::class))->getFileName()),
64+
(int) filemtime(__DIR__.'/MenuRuntimeExtension.php'),
6565
);
6666
}
6767

0 commit comments

Comments
 (0)