Skip to content

Commit

Permalink
Fixed check for required capabilities in ToolProxyRegistrationRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumi-kun committed Jun 11, 2018
1 parent 65b05e2 commit 12c4c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ToolProvider/ToolProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ private function authenticate()
}
foreach ($this->constraints as $name => $constraint) {
if ($constraint['required']) {
if (!in_array($name, $capabilities) && !in_array($name, array_flip($capabilities))) {
if (!in_array($name, $capabilities, true)) {
$missing[$name] = true;
}
}
Expand Down

0 comments on commit 12c4c03

Please sign in to comment.