Skip to content

Commit

Permalink
add test reproducing #5533
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor authored and kubawerlos committed Apr 5, 2021
1 parent 62cceb9 commit e3f0d37
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php
Original file line number Diff line number Diff line change
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 e3f0d37

Please sign in to comment.