Skip to content

Commit c93018a

Browse files
committed
[Config] fix filelocator with empty name
1 parent 17bb005 commit c93018a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Config/FileLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(KernelInterface $kernel, $path = null, array $paths
4747
*/
4848
public function locate($file, $currentPath = null, $first = true)
4949
{
50-
if ('@' === $file[0]) {
50+
if (isset($file[0]) && '@' === $file[0]) {
5151
return $this->kernel->locateResource($file, $this->path, $first);
5252
}
5353

0 commit comments

Comments
 (0)