]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix typo in var 41184/head
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Sun, 29 Oct 2023 13:30:17 +0000 (14:30 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 9 Feb 2024 13:41:26 +0000 (14:41 +0100)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/AppFramework/Utility/ControllerMethodReflector.php

index 5a1ed0fd6ee540628743a60ecd382f8f1bc9b284..bd68dd96ed4d630ff76c405a2ae5bae30c3e9d7a 100644 (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);