Skip to content

Commit 41825bd

Browse files
committed
Add test
1 parent e65a069 commit 41825bd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Latest stable version](https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
66
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://php.net)
77
[![License](https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg)](LICENSE)
8-
![Tests](https://img.shields.io/badge/tests-3800-brightgreen.svg)
8+
![Tests](https://img.shields.io/badge/tests-3801-brightgreen.svg)
99
[![Downloads](https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
1010

1111
[![CI status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml/badge.svg)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml)

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)