[Config] Allow null values for numeric & boolean nodes

by @ogizanagi

Some issues have been detected in this pull request

0
Coding Standard

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

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/symfony/symfony/34664/5d8b2566886d9aa9c20b9809c208e711b7f0c76e/exception_messages.diff | patch -p0
diff -ru src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php
--- src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php	2020-09-09 06:26:17.805312224 +0000
+++ src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php	2020-09-09 06:26:20.848246987 +0000
@@ -40,7 +40,7 @@
     public function max($max)
     {
         if (isset($this->min) && $this->min > $max) {
-            throw new \InvalidArgumentException(sprintf('You cannot define a max(%s) as you already have a min(%s)', $max, $this->min));
+            throw new \InvalidArgumentException(sprintf('You cannot define a max(%s) as you already have a min(%s).', $max, $this->min));
         }
         $this->max = $max;
 
@@ -59,7 +59,7 @@
     public function min($min)
     {
         if (isset($this->max) && $this->max < $min) {
-            throw new \InvalidArgumentException(sprintf('You cannot define a min(%s) as you already have a max(%s)', $min, $this->max));
+            throw new \InvalidArgumentException(sprintf('You cannot define a min(%s) as you already have a max(%s).', $min, $this->max));
         }
         $this->min = $min;