Skip to content

Commit 65feb27

Browse files
kalessilfabpot
authored andcommitted
SCA: minor code tweaks
1 parent cada3aa commit 65feb27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ protected function detectMetadataDriver($dir, ContainerBuilder $container)
260260
$configPath = $this->getMappingResourceConfigDirectory();
261261
$extension = $this->getMappingResourceExtension();
262262

263-
if (glob($dir.'/'.$configPath.'/*.'.$extension.'.xml')) {
263+
if (glob($dir.'/'.$configPath.'/*.'.$extension.'.xml', GLOB_NOSORT)) {
264264
$driver = 'xml';
265-
} elseif (glob($dir.'/'.$configPath.'/*.'.$extension.'.yml')) {
265+
} elseif (glob($dir.'/'.$configPath.'/*.'.$extension.'.yml', GLOB_NOSORT)) {
266266
$driver = 'yml';
267-
} elseif (glob($dir.'/'.$configPath.'/*.'.$extension.'.php')) {
267+
} elseif (glob($dir.'/'.$configPath.'/*.'.$extension.'.php', GLOB_NOSORT)) {
268268
$driver = 'php';
269269
} else {
270270
// add the closest existing directory as a resource

0 commit comments

Comments
 (0)