toyi 2 年 前
コミット
27f51ad9aa
1 ファイル変更1 行追加1 行削除
  1. 1 1
      camel/Extraction/ExtractedEndpointData.php

+ 1 - 1
camel/Extraction/ExtractedEndpointData.php

@@ -267,7 +267,7 @@ class ExtractedEndpointData extends BaseDTO
     protected function argumentHasModelType(\ReflectionParameter $argument): bool
     {
         $argumentType = $argument->getType();
-        if (!$argumentType) {
+        if (!$argumentType instanceof \ReflectionNamedType) {
             // The argument does not have a type-hint
             return false;
         } else {