Skip to content

Commit e8187b3

Browse files
fprochazkadg
authored andcommitted
Loader: fixed including of paths with scheme in config loader (#153)
1 parent fc69279 commit e8187b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DI/Config/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function load(string $file): array
4848
if (isset($data[self::INCLUDES_KEY])) {
4949
Validators::assert($data[self::INCLUDES_KEY], 'list', "section 'includes' in file '$file'");
5050
foreach ($data[self::INCLUDES_KEY] as $include) {
51-
if (!preg_match('#([a-z]:)?[/\\\\]#Ai', $include)) {
51+
if (!preg_match('#([a-z]+:)?[/\\\\]#Ai', $include)) {
5252
$include = dirname($file) . '/' . $include;
5353
}
5454
$merged = Helpers::merge($this->load($include), $merged);

0 commit comments

Comments
 (0)