Skip to content

Commit 30b7c5d

Browse files
committed
Add test
1 parent e65a069 commit 30b7c5d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Fixer/PhpdocNoSuperfluousParamFixerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,5 +299,18 @@ function foo($x) {}
299299
function foo($x) {}
300300
PHP,
301301
];
302+
303+
yield [
304+
<<<'PHP'
305+
<?php
306+
class Foo
307+
{
308+
/**
309+
* @param callable(Type $type, callable(Type): Type $traverse): Type $callback
310+
*/
311+
public function __construct(mixed $callback) {}
312+
}
313+
PHP,
314+
];
302315
}
303316
}

0 commit comments

Comments
 (0)