Skip to content

Commit

Permalink
Merge pull request #41184 from nextcloud/fixTypoInVar
Browse files Browse the repository at this point in the history
Fix typo in var
  • Loading branch information
solracsf authored Feb 9, 2024
2 parents 0b1396d + 786894f commit 4d95320
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function reflect($object, string $method) {
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);
Expand Down

0 comments on commit 4d95320

Please sign in to comment.