diff --git a/Composer.php b/Composer.php
index <HASH>..<HASH> 100644
--- a/Composer.php
+++ b/Composer.php
@@ -39,7 +39,7 @@ class Composer
      * Regenerate the Composer autoloader files.
      *
      * @param  string|array  $extra
-     * @return void
+     * @return int
      */
     public function dumpAutoloads($extra = '')
     {
@@ -47,17 +47,17 @@ class Composer
 
         $command = array_merge($this->findComposer(), ['dump-autoload'], $extra);
 
-        $this->getProcess($command)->run();
+        return $this->getProcess($command)->run();
     }
 
     /**
      * Regenerate the optimized Composer autoloader files.
      *
-     * @return void
+     * @return int
      */
     public function dumpOptimized()
     {
-        $this->dumpAutoloads('--optimize');
+        return $this->dumpAutoloads('--optimize');
     }
 
     /**
[8.x] Composer dumpAutoloads returns the status code of the process (#<I>)

* Composer dumpAutoloads returns the status code of the process



* retrigger checks



* Update Composer.php