diff -ru tests/Fixer/ControlStructure/NoUselessElseFixerTest.php tests/Fixer/ControlStructure/NoUselessElseFixerTest.php --- tests/Fixer/ControlStructure/NoUselessElseFixerTest.php 2022-05-13 12:05:40.581166627 +0000 +++ tests/Fixer/ControlStructure/NoUselessElseFixerTest.php 2022-05-13 12:05:42.097198210 +0000 @@ -747,7 +747,7 @@ yield from $this->generateConditionsWithoutBracesCase('throw new class extends Exception{};'); - yield from $this->generateConditionsWithoutBracesCase('throw new class ($a, 9) extends Exception{ public function z($a, $b){ echo 7;} };'); + yield from $this->generateConditionsWithoutBracesCase('throw new class ($a, 9) extends Exception{ public function z($a, $b){ echo 7;} };.'); } /**