Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions tests/Fixer/PhpdocNoSuperfluousParamFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,26 @@ function removeMultiLineArrayShapes() {}
function doNotRemoveMultiLineArrayShapes($param1, $param2, $param3, $param4, $param5) {}
PHP,
];

yield [
<<<'PHP'
<?php
class Foo
{
/**
* @template TKey of array-key
* @template TValue of mixed
*
* @param Collection<TKey, TValue> $collection
* @param callable(TKey $a, TKey $b): int $comparator
*
* @return ArrayCollection<TKey, TValue>
*/
public static function sortByKeys(Collection $collection, callable $comparator): ArrayCollection
{
}
}
PHP,
];
}
}
Loading