title: Type Error in Laravel 8 app when package barryvdh/laravel-translation-manager is installed
body: <p>For last 3-4 weeks I receive this error in my Laravel 8 app, which breaks down my app. After uninstalling the package the problem disappears.</p>
  <p>Please advice.</p>
  <p>When using the Laravel app:</p>
  <pre><code>TypeError
  Argument 2 passed to Symfony\Component\Translation\Translator::addResource() must be an instance of Symfony\Component\Translation\mixed, array given, called in D:\www\MyBooks\vendor\nesbot\carbon\src\Carbon\AbstractTranslator.php on line 165
  </code></pre>
  <p>when updating the app and dependencies:</p>
  <pre><code>TypeError
  
    Argument 2 passed to Symfony\Component\Translation\Translator::addResource() must be an instance of Symfony\Component\Translation\mixed, array given, called in D:\www\MyBooks\vendor\nesbot\carbon\src\Carbon\AbstractTranslator.php on line 165
  
    at D:\www\MyBooks\vendor\symfony\translation\Translator.php:109
      105|      * @param mixed  $resource The resource name
      106|      *
      107|      * @throws InvalidArgumentException If the locale contains invalid characters
      108|      */
    &gt; 109|     public function addResource(string $format, mixed $resource, string $locale, string $domain = null)
      110|     {
      111|         if (null === $domain) {
      112|             $domain = 'messages';
      113|         }
  
    1   D:\www\MyBooks\vendor\nesbot\carbon\src\Carbon\AbstractTranslator.php:165
        Symfony\Component\Translation\Translator::addResource(&quot;array&quot;, &quot;en&quot;)
  
    2   D:\www\MyBooks\vendor\nesbot\carbon\src\Carbon\AbstractTranslator.php:256
        Carbon\AbstractTranslator::resetMessages(&quot;en&quot;)
  </code></pre>