title: Unsupported operand types in laravel 5.4
body: <p><a href="https://i.stack.imgur.com/twJcD.png" rel="nofollow noreferrer">Error page recieved</a>
  This is the code block where the error originates. How do I handle this code snippet, I need it to work on laravel 5.4 the $extras variable is an array.</p>
  
  <pre><code>/**
   * Map to configuration
   *
   * @param $keys
   * @param $config_var
   * @param $extras
   * @return array
   */
  private function map_to_config($keys, $config_var, $extras = [])
  {
      try {
          $configArray =
              array_map(function ($string) use ($keys, $extras) {
                line 132 where the error is--&gt;  return array_combine($keys, explode(":", $string)) + $extras;
              }, explode(",", $config_var));
          return array_filter($configArray);
      } catch (\Exception $e) {
          return [];
      }
  }
  </code></pre>
  
  <p>}</p>