Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / console / Event / ConsoleErrorEvent.php
index 0d05b9dad5bd0eb23fb6c9e49ad7bf97398b0d10..51a5f56d528237ae050707754039e9c51fc882ed 100644 (file)
@@ -51,7 +51,7 @@ final class ConsoleErrorEvent extends ConsoleEvent
     public function setError($error)
     {
         if (!$error instanceof \Throwable && !$error instanceof \Exception) {
-            throw new InvalidArgumentException(sprintf('The error passed to ConsoleErrorEvent must be an instance of \Throwable or \Exception, "%s" was passed instead.', is_object($error) ? get_class($error) : gettype($error)));
+            throw new InvalidArgumentException(sprintf('The error passed to ConsoleErrorEvent must be an instance of \Throwable or \Exception, "%s" was passed instead.', \is_object($error) ? \get_class($error) : \gettype($error)));
         }
 
         $this->error = $error;
@@ -78,6 +78,6 @@ final class ConsoleErrorEvent extends ConsoleEvent
      */
     public function getExitCode()
     {
-        return null !== $this->exitCode ? $this->exitCode : (is_int($this->error->getCode()) && 0 !== $this->error->getCode() ? $this->error->getCode() : 1);
+        return null !== $this->exitCode ? $this->exitCode : (\is_int($this->error->getCode()) && 0 !== $this->error->getCode() ? $this->error->getCode() : 1);
     }
 }