Allow single line braces for empty function body

by @tuqqu

Some issues have been detected in this pull request

0
Coding Standard

0
Common Typos

0
File Permissions

0
Merge Commits

Issues that can be fixed by applying a patch

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/5757/a44c1d90897a8c781388758b5fa485846f1340ff/exception_messages.diff | patch -p0
diff -ru tests/Fixtures/Integration/set/@Symfony.test-out.php tests/Fixtures/Integration/set/@Symfony.test-out.php
--- tests/Fixtures/Integration/set/@Symfony.test-out.php	2021-06-10 21:05:06.408436085 +0000
+++ tests/Fixtures/Integration/set/@Symfony.test-out.php	2021-06-10 21:05:08.902362390 +0000
@@ -64,7 +64,7 @@
             return ucwords($dummy);
         }
 
-        throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
+        throw new \RuntimeException(sprintf('Unrecognized dummy option "%s".', $dummy));
     }
 
     private function reverseBoolean($value = null, $theSwitch = false)
diff -ru tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php
--- tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php	2021-06-10 21:05:06.653428845 +0000
+++ tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php	2021-06-10 21:05:08.903362361 +0000
@@ -64,7 +64,7 @@
 			return ucwords($dummy);
 		}
 
-		throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
+		throw new \RuntimeException(sprintf('Unrecognized dummy option "%s".', $dummy));
 	}
 
 	private function reverseBoolean($value = null, $theSwitch = false)

0
Usage of void in test files

0
Use ::class whenever possible