Skip to content

Commit 0cf9836

Browse files
Optimized method MethodDefinitionCollector::getOrParse() to avoid deprecated in PHP8. (#4009)
Co-authored-by: 李铭昕 <[email protected]>
1 parent 3a1f556 commit 0cf9836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MethodDefinitionCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function getOrParse(string $class, string $method): array
5555
$definitions[] = [
5656
'type' => 'object',
5757
'name' => $parameter->getName(),
58-
'ref' => $parameter->getClass()->getName() ?? null,
58+
'ref' => $type ?? null,
5959
'allowsNull' => $parameter->allowsNull(),
6060
];
6161
break;

0 commit comments

Comments
 (0)