@@ -96,7 +96,7 @@ public function mapReturnType(
96
96
$ refMethod ,
97
97
$ docBlockObj ,
98
98
);
99
- assert (! $ type instanceof InputType );
99
+ assert ($ type instanceof OutputType );
100
100
} catch (CannotMapTypeExceptionInterface $ e ) {
101
101
$ e ->addReturnInfo ($ refMethod );
102
102
throw $ e ;
@@ -160,7 +160,12 @@ private function getDocBlockPropertyType(DocBlock $docBlock, ReflectionProperty
160
160
return reset ($ varTags )->getType ();
161
161
}
162
162
163
- public function mapParameter (ReflectionParameter $ parameter , DocBlock $ docBlock , Type |null $ paramTagType , ParameterAnnotations $ parameterAnnotations ): ParameterInterface
163
+ public function mapParameter (
164
+ ReflectionParameter $ parameter ,
165
+ DocBlock $ docBlock ,
166
+ Type |null $ paramTagType ,
167
+ ParameterAnnotations $ parameterAnnotations ,
168
+ ): ParameterInterface
164
169
{
165
170
$ hideParameter = $ parameterAnnotations ->getAnnotationByType (HideParameter::class);
166
171
if ($ hideParameter ) {
@@ -327,7 +332,7 @@ public function mapInputProperty(
327
332
$ inputType = $ this ->typeResolver ->mapNameToInputType ($ inputTypeName );
328
333
} else {
329
334
$ inputType = $ this ->mapPropertyType ($ refProperty , $ docBlock , true , $ argumentName , $ isNullable );
330
- assert (! $ inputType instanceof OutputType );
335
+ assert ($ inputType instanceof InputType );
331
336
}
332
337
333
338
$ hasDefault = $ defaultValue !== null || $ isNullable ;
0 commit comments