Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:
curl https://fabbot.io/patch/FriendsOfPHP/PHP-CS-Fixer/6389/eb72facb9994270f561a2866902839ccfd425cac/exception_messages.diff | patch -p0
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;} };.');
}
/**