Fix typo in var

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2023-10-29 14:30:17 +01:00 committed by Robin Appelman
parent 0b1396d1c4
commit 786894f15c

View file

@ -58,7 +58,7 @@ class ControllerMethodReflector implements IControllerMethodReflector {
foreach ($matches['annotation'] as $key => $annotation) {
$annotation = strtolower($annotation);
$annotationValue = $matches['parameter'][$key];
if (isset($annotationValue[0]) && $annotationValue[0] === '(' && $annotationValue[\strlen($annotationValue) - 1] === ')') {
if (str_starts_with($annotationValue, '(') && str_ends_with($annotationValue, ')')) {
$cutString = substr($annotationValue, 1, -1);
$cutString = str_replace(' ', '', $cutString);
$splitArray = explode(',', $cutString);