We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76abb1 commit 53dec5cCopy full SHA for 53dec5c
src/Doctrine/DoctrineHelper.php
@@ -311,7 +311,7 @@ private function getMappingDriverForNamespace(string $namespace): ?MappingDriver
311
$lowestCharacterDiff = null;
312
$foundDriver = null;
313
314
- foreach ($this->mappingDriversByPrefix as $key => $mappings) {
+ foreach ($this->mappingDriversByPrefix ?? [] as $mappings) {
315
foreach ($mappings as [$prefix, $driver]) {
316
$diff = substr_compare($namespace, $prefix, 0);
317
0 commit comments