Skip to content

Commit fb89ecd

Browse files
authored
Respect the order of AWS when choosing an alternative protocol (#2009)
1 parent f452435 commit fb89ecd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Definition/ServiceDefinition.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public function getProtocol(): string
158158
}
159159

160160
$protocols = $this->definition['metadata']['protocols'] ?? [];
161-
foreach (self::SUPPORTED_PROTOCOLS as $supportedProtocol) {
162-
if (\in_array($supportedProtocol, $protocols, true)) {
163-
return $supportedProtocol;
161+
foreach ($protocols as $protocol) {
162+
if (\in_array($protocol, self::SUPPORTED_PROTOCOLS, true)) {
163+
return $protocol;
164164
}
165165
}
166166

0 commit comments

Comments
 (0)