Browse Source

Fix typo in var

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
tags/v29.0.0beta1
Git'Fellow 7 months ago
parent
commit
786894f15c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/AppFramework/Utility/ControllerMethodReflector.php

+ 1
- 1
lib/private/AppFramework/Utility/ControllerMethodReflector.php 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);

Loading…
Cancel
Save