Skip to content

Commit 58d0e60

Browse files
authored
PhpdocNoSuperfluousParamFixerTest - add test with array shapes (#1065)
1 parent 2071827 commit 58d0e60

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/Fixer/PhpdocNoSuperfluousParamFixerTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,5 +312,27 @@ public function __construct(mixed $callback) {}
312312
}
313313
PHP,
314314
];
315+
316+
yield [
317+
<<<'PHP'
318+
<?php
319+
/**
320+
* @param array{value: string} $param1
321+
* @param array{value: string} $param2
322+
* @param ARRAY{value: string} $param3
323+
*/
324+
function foo(array $param1, $param2, ARRAY $param3) {}
325+
PHP,
326+
<<<'PHP'
327+
<?php
328+
/**
329+
* @param array{value: string} $param1
330+
* @param array{value: string} $param2
331+
* @param array{value: string} $param404
332+
* @param ARRAY{value: string} $param3
333+
*/
334+
function foo(array $param1, $param2, ARRAY $param3) {}
335+
PHP,
336+
];
315337
}
316338
}

0 commit comments

Comments
 (0)