diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-02-09 16:11:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 16:11:31 +0100 |
commit | 4d95320d97ca3b22215946eb8b84cd8717c3dc93 (patch) | |
tree | bd39f2b45c9bed44d3acda8a3d5adc64054bb3d1 | |
parent | 0b1396d1c47b19decb458695261da2ef51843a03 (diff) | |
parent | 786894f15cd6dfc5f75a553584c070bd28ba75f6 (diff) | |
download | nextcloud-server-4d95320d97ca3b22215946eb8b84cd8717c3dc93.tar.gz nextcloud-server-4d95320d97ca3b22215946eb8b84cd8717c3dc93.zip |
Merge pull request #41184 from nextcloud/fixTypoInVar
Fix typo in var
-rw-r--r-- | lib/private/AppFramework/Utility/ControllerMethodReflector.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Utility/ControllerMethodReflector.php b/lib/private/AppFramework/Utility/ControllerMethodReflector.php index 5a1ed0fd6ee..bd68dd96ed4 100644 --- a/lib/private/AppFramework/Utility/ControllerMethodReflector.php +++ b/lib/private/AppFramework/Utility/ControllerMethodReflector.php @@ -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); |