From d4972132ef19002982c8931b283e64137383f20c Mon Sep 17 00:00:00 2001 From: Jeremiasz Major Date: Mon, 5 Apr 2021 20:57:44 +0200 Subject: [PATCH] add test reproducing #5533 --- .../TernaryToElvisOperatorFixerTest.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php b/tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php index 5b87d5d65ad..528639b3831 100644 --- a/tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php +++ b/tests/Fixer/Operator/TernaryToElvisOperatorFixerTest.php @@ -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 [ + ['