aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-10-29 14:30:17 +0100
committerRobin Appelman <robin@icewind.nl>2024-02-09 14:41:26 +0100
commit786894f15cd6dfc5f75a553584c070bd28ba75f6 (patch)
treebd39f2b45c9bed44d3acda8a3d5adc64054bb3d1 /lib
parent0b1396d1c47b19decb458695261da2ef51843a03 (diff)
downloadnextcloud-server-786894f15cd6dfc5f75a553584c070bd28ba75f6.tar.gz
nextcloud-server-786894f15cd6dfc5f75a553584c070bd28ba75f6.zip
Fix typo in var
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Utility/ControllerMethodReflector.php2
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);