Skip to content

Commit 4d95320

Browse files
authored
Merge pull request #41184 from nextcloud/fixTypoInVar
Fix typo in var
2 parents 0b1396d + 786894f commit 4d95320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/AppFramework/Utility/ControllerMethodReflector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function reflect($object, string $method) {
5858
foreach ($matches['annotation'] as $key => $annotation) {
5959
$annotation = strtolower($annotation);
6060
$annotationValue = $matches['parameter'][$key];
61-
if (isset($annotationValue[0]) && $annotationValue[0] === '(' && $annotationValue[\strlen($annotationValue) - 1] === ')') {
61+
if (str_starts_with($annotationValue, '(') && str_ends_with($annotationValue, ')')) {
6262
$cutString = substr($annotationValue, 1, -1);
6363
$cutString = str_replace(' ', '', $cutString);
6464
$splitArray = explode(',', $cutString);

0 commit comments

Comments
 (0)