Skip to content

Commit 62bda59

Browse files
committed
minor #12206 [Config] fix filelocator with empty name (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- [Config] fix filelocator with empty name | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - fix filelocator with empty name + phpdoc in config component Commits ------- 63b8c07 [DependencyInjection] use inheritdoc for loaders ddd2fe2 [Config] fix filelocator with empty name
2 parents f30eadf + c93018a commit 62bda59

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)