Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / config / Definition / BooleanNode.php
index 08e1a7730713a094764eb9b50bef7d14b7803baf..85f467b6bea92b5b5e234ff683aeb7eeca8f71b2 100644 (file)
@@ -25,12 +25,8 @@ class BooleanNode extends ScalarNode
      */
     protected function validateType($value)
     {
-        if (!is_bool($value)) {
-            $ex = new InvalidTypeException(sprintf(
-                'Invalid type for path "%s". Expected boolean, but got %s.',
-                $this->getPath(),
-                gettype($value)
-            ));
+        if (!\is_bool($value)) {
+            $ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected boolean, but got %s.', $this->getPath(), \gettype($value)));
             if ($hint = $this->getInfo()) {
                 $ex->addHint($hint);
             }