Skip to content

Commit

Permalink
Merge commits
Browse files Browse the repository at this point in the history
 fix #27
  • Loading branch information
riccardonar authored Aug 2, 2018
1 parent 049195e commit 00594ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ protected function findOperation($functionName, array $serviceDefinition)
return $serviceDefinition['operations'][$functionName];
}

foreach ($serviceDefinition['operations'] as $opName => $operation) {
if (strtolower($functionName) == strtolower($opName)) {
foreach ($serviceDefinition['operations'] as $operation) {
if (strtolower($functionName) == strtolower($operation['method'])) {
return $operation;
}
}
Expand Down

0 comments on commit 00594ba

Please sign in to comment.