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 f452435 commit fb89ecdCopy full SHA for fb89ecd
src/Definition/ServiceDefinition.php
@@ -158,9 +158,9 @@ public function getProtocol(): string
158
}
159
160
$protocols = $this->definition['metadata']['protocols'] ?? [];
161
- foreach (self::SUPPORTED_PROTOCOLS as $supportedProtocol) {
162
- if (\in_array($supportedProtocol, $protocols, true)) {
163
- return $supportedProtocol;
+ foreach ($protocols as $protocol) {
+ if (\in_array($protocol, self::SUPPORTED_PROTOCOLS, true)) {
+ return $protocol;
164
165
166
0 commit comments