Skip to content

Commit 67350b7

Browse files
committed
fix: isset not needed
1 parent 0e91b04 commit 67350b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/State/Util/ParameterParserTrait.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ private function extractParameterValues(Parameter $parameter, array $values): st
5151
$key = $parsedKey[0];
5252
} elseif (str_contains($key, '[')) {
5353
preg_match_all('/[^\[\]]+/', $key, $matches);
54-
if (isset($matches[0])) {
55-
$key = array_shift($matches[0]);
56-
$accessors = $matches[0];
57-
}
54+
$key = array_shift($matches[0]);
55+
$accessors = $matches[0];
5856
}
5957

6058
$value = $values[$key] ?? new ParameterNotFound();

0 commit comments

Comments
 (0)