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