Skip to content

Commit

Permalink
fixed characters case in check paramaters
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Jun 7, 2019
1 parent dc0fb24 commit c43d76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapter/AdapterAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ public function reverse(): bool
*/
protected function checkRequiredParameters(array $parameters)
{
$parameters = array_change_key_case($parameters,CASE_LOWER);

foreach ($parameters as $parameter) {
$parameter = strtolower($parameter);

if (!array_key_exists($parameter, $this->parameters) || trim($this->parameters[$parameter]) == "") {
throw new Exception("Parameters array must have a not null value for key: '$parameter'");
}
Expand Down

0 comments on commit c43d76c

Please sign in to comment.