diff --git a/src/ToolProvider/ToolProvider.php b/src/ToolProvider/ToolProvider.php index 1956403..36492de 100644 --- a/src/ToolProvider/ToolProvider.php +++ b/src/ToolProvider/ToolProvider.php @@ -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; } }