Skip to content

Commit

Permalink
add test reproducing PHP-CS-Fixer#5533
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Apr 5, 2021
1 parent 9bf2760 commit d497213
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php
Expand Up @@ -498,4 +498,25 @@ public function provideFix70Cases()
],
];
}

/**
* @param string $input
*
* @dataProvider provideDoNotFix80Cases
* @requires PHP 8.0
*/
public function test80DoNotFix($input)
{
$this->doTest($input);
}

public function provideDoNotFix80Cases()
{
return [
['<?php
function test(#[TestAttribute] ?User $user) {}
'],
];
}
}

0 comments on commit d497213

Please sign in to comment.