2424use phpDocumentor \Reflection \Types \Object_ ;
2525use phpDocumentor \Reflection \Types \String_ ;
2626use PHPUnit \Framework \TestCase ;
27+ use stdClass ;
28+
29+ use function sprintf ;
2730
2831/**
2932 * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Method
@@ -39,6 +42,7 @@ public function tearDown(): void
3942 m::close ();
4043 }
4144
45+ /** @return array<array{0: Type, 1: mixed, 2: string}> */
4246 public function collectionDefaultValuesProvider (): array
4347 {
4448 return [
@@ -50,7 +54,7 @@ public function collectionDefaultValuesProvider(): array
5054 [new Array_ (), [[1 , 2 ], '2 ' , true ], '[[1,2], \'2 \',true] ' ],
5155 [new Nullable (new Float_ ()), null , 'null ' ],
5256 [new Nullable (new Float_ ()), 1.23 , '1.23 ' ],
53- [new Object_ (new Fqsen ('\\stdClass ' )), new \ stdClass (), 'new stdClass() ' ],
57+ [new Object_ (new Fqsen ('\\stdClass ' )), new stdClass (), 'new stdClass() ' ],
5458 ];
5559 }
5660
@@ -60,12 +64,17 @@ public function collectionDefaultValuesProvider(): array
6064 * @uses \phpDocumentor\Reflection\DocBlock\Tags\MethodParameter::__toString
6165 * @uses \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
6266 *
67+ * @param mixed $defaultValue
68+ *
6369 * @dataProvider collectionDefaultValuesProvider
6470 * @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
6571 * @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName
6672 */
67- public function testIfTagCanBeRenderedUsingMethodParameterWithDefaultValue (Type $ type , $ defaultValue , string $ defaultValueStr ): void
68- {
73+ public function testIfTagCanBeRenderedUsingMethodParameterWithDefaultValue (
74+ Type $ type ,
75+ $ defaultValue ,
76+ string $ defaultValueStr
77+ ): void {
6978 $ fixture = new MethodParameter ('argument ' , $ type , false , false , $ defaultValue );
7079
7180 $ this ->assertSame (
0 commit comments