title: ErrorException : implode(): Passing glue string after array is deprecated. Swap the parameters
body: <p>Am running Laravel 5.8 and getting this error when seeding</p>
  <pre><code>Seeding: CategoriesTableSeeder
  </code></pre>
  <blockquote>
  <p>ErrorException  : implode(): Passing glue string after array is deprecated. Swap the parameters</p>
  </blockquote>
  <blockquote>
  <p>at /Users/saly/Sites/Saly/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php:95</p>
  </blockquote>
  <pre><code>91|
  92|         $words = static::words($nbWords);
  93|         $words[0] = ucwords($words[0]);
  94|
  95|         return implode($words, ' ') . '.';
  96|     }
  97|
  98|     /**
  99|      * Generate an array of sentences
  </code></pre>
  <pre><code>  Exception trace:
  
    1   implode(&quot; &quot;)
        /Users/saly/Sites/Saly/vendor/fzaninotto/faker/src/Faker/Provider/Lorem.php:95
  
    2   Faker\Provider\Lorem::sentence()
        /Users/saly/Sites/Saly/vendor/fzaninotto/faker/src/Faker/Generator.php:222
  
  &gt;  Please use the argument -v to see more details.
  </code></pre>
  <p>The app is passing tests just fine in CI using PHP 7.3 and 7.2 so the problem might be PHP 7.4 in my local machine &quot;OSX&quot;</p>
  <p>Here's my seed file</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  use Saly\Category;
  use Illuminate\Database\Seeder;
  
  class CategoriesTableSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          factory(Category::class, 3)-&gt;create();
      }
  }
  </code></pre>
  <p>And the factory</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  use Saly\Category;
  use Faker\Generator as Faker;
  
  $factory-&gt;define(Category::class, function (Faker $faker) {
      $name = $faker-&gt;sentence(4, true); // Here maybe?
      return [
          'name' =&gt; $name,
          'slug' =&gt; sluggify($name),
      ];
  });
  </code></pre>
  <p>I think the problem is in the line where <code>sentence()</code> is used but I can't tell how to solve it because I just copied that line from the Faker docs</p>
  <p>What does this error mean and how can I solve it?</p>