Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrv committed Apr 18, 2021
1 parent 78008b3 commit 985052c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Slim/CallableResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ private function prepareToResolve($toResolve)
if (!is_array($toResolve)) {
return $toResolve;
}
$array = $toResolve;
$class = array_shift($array);
$method = array_shift($array);
$candidate = $toResolve;
$class = array_shift($candidate);
$method = array_shift($candidate);
if (is_string($class) && is_string($method)) {
return $class . ':' . $method;
}
Expand Down

0 comments on commit 985052c

Please sign in to comment.