We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb1c2df commit 6da1a65Copy full SHA for 6da1a65
src/Stubs/Doctrine/StubFilesExtensionLoader.php
@@ -61,7 +61,9 @@ public function getFiles(): array
61
$files[] = $stubsDir . '/ServiceEntityRepository.stub';
62
}
63
64
- $collectionVersion = InstalledVersions::getVersion('doctrine/dbal');
+ $collectionVersion = class_exists(InstalledVersions::class)
65
+ ? InstalledVersions::getVersion('doctrine/collections')
66
+ : null;
67
if ($collectionVersion !== null && strpos($collectionVersion, '1.') === 0) {
68
$files[] = $stubsDir . '/Collections/Collection1.stub';
69
} else {
0 commit comments