Skip to content

Commit 41d9df0

Browse files
authored
Fix copy/paste error
1 parent 3664af5 commit 41d9df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/src/Command/TwigComponentDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function findAnonymousComponents(): array
187187
$path = $template->getPath();
188188

189189
if ($template->getRelativePath()) {
190-
+ $path = rtrim(substr($template->getPath(), 0, -1 * \strlen($template->getRelativePath())), \DIRECTORY_SEPARATOR);
190+
$path = rtrim(substr($template->getPath(), 0, -1 * \strlen($template->getRelativePath())), \DIRECTORY_SEPARATOR);
191191
}
192192

193193
if (isset($dirs[$path]) && FilesystemLoader::MAIN_NAMESPACE !== $dirs[$path]) {

0 commit comments

Comments
 (0)