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 99262dc commit a945940Copy full SHA for a945940
src/Symfony/Bundle/DataCollector/RequestDataCollector.php
@@ -73,7 +73,16 @@ public function getVersion(): ?string
73
return null;
74
}
75
76
- $version = Versions::getVersion('api-platform/core');
+ try {
77
+ $version = Versions::getVersion('api-platform/core');
78
+ } catch (\OutOfBoundsException $e) {
79
80
+ $version = Versions::getVersion('api-platform/symfony');
81
82
+ return null;
83
+ }
84
85
+
86
preg_match('/^v(.*?)@/', (string) $version, $output);
87
88
return $output[1] ?? strtok($version, '@');
0 commit comments