Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Tests / Fixtures / FakeMetadataFactory.php
index 98aa57ce8024b137c56a0d6c5032fe2d83724387..1b5a704d46800e482105dd4ffd38610ebb30605a 100644 (file)
@@ -23,13 +23,13 @@ class FakeMetadataFactory implements MetadataFactoryInterface
     {
         $hash = null;
 
-        if (is_object($class)) {
+        if (\is_object($class)) {
             $hash = spl_object_hash($class);
-            $class = get_class($class);
+            $class = \get_class($class);
         }
 
-        if (!is_string($class)) {
-            throw new NoSuchMetadataException(sprintf('No metadata for type %s', gettype($class)));
+        if (!\is_string($class)) {
+            throw new NoSuchMetadataException(sprintf('No metadata for type %s', \gettype($class)));
         }
 
         if (!isset($this->metadatas[$class])) {
@@ -47,12 +47,12 @@ class FakeMetadataFactory implements MetadataFactoryInterface
     {
         $hash = null;
 
-        if (is_object($class)) {
+        if (\is_object($class)) {
             $hash = spl_object_hash($class);
-            $class = get_class($class);
+            $class = \get_class($class);
         }
 
-        if (!is_string($class)) {
+        if (!\is_string($class)) {
             return false;
         }
 
@@ -66,7 +66,7 @@ class FakeMetadataFactory implements MetadataFactoryInterface
 
     public function addMetadataForValue($value, MetadataInterface $metadata)
     {
-        $key = is_object($value) ? spl_object_hash($value) : $value;
+        $key = \is_object($value) ? spl_object_hash($value) : $value;
         $this->metadatas[$key] = $metadata;
     }
 }