Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / config / Definition / FloatNode.php
index 5e1af17ada07b22cb4e43a171a7048359fee0e0e..9eb8789950ecde9d36cab0003714fedd45a6138a 100644 (file)
@@ -26,12 +26,12 @@ class FloatNode extends NumericNode
     protected function validateType($value)
     {
         // Integers are also accepted, we just cast them
-        if (is_int($value)) {
+        if (\is_int($value)) {
             $value = (float) $value;
         }
 
-        if (!is_float($value)) {
-            $ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected float, but got %s.', $this->getPath(), gettype($value)));
+        if (!\is_float($value)) {
+            $ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected float, but got %s.', $this->getPath(), \gettype($value)));
             if ($hint = $this->getInfo()) {
                 $ex->addHint($hint);
             }