Skip to content

Commit fc01921

Browse files
staabmsebastianbergmann
authored andcommitted
Fix "PHPDoc tag @phpstan-assert for $array has no value type specified in iterable type"
1 parent a5bd5df commit fc01921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Framework/MockObject/Generator/MockMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ public function generateCode(): string
226226
'arguments_call' => $this->argumentsForCall,
227227
'return_declaration' => !empty($this->returnType->asString()) ? (': ' . $this->returnType->asString()) : '',
228228
'return_type' => $this->returnType->asString(),
229-
'arguments_count' => $argumentsCount,
229+
'arguments_count' => (string) $argumentsCount,
230230
'class_name' => $this->className,
231231
'method_name' => $this->methodName,
232232
'modifier' => $this->modifier,
233233
'reference' => $this->reference,
234234
'clone_arguments' => $this->cloneArguments ? 'true' : 'false',
235-
'deprecation' => $deprecation,
235+
'deprecation' => $deprecation ?? '',
236236
'return_result' => $returnResult,
237237
],
238238
);

0 commit comments

Comments
 (0)