Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access offset of type string on string #145

Closed
ghost opened this issue Mar 12, 2023 · 1 comment
Closed

Cannot access offset of type string on string #145

ghost opened this issue Mar 12, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 12, 2023

After installing the latest version I get this error back using PHP 8.2.3 and both tagged version 10.0 and using dev-master.

Generating autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   TypeError

  Cannot access offset of type string on string

  at vendor/cviebrock/laravel-elasticsearch/src/Factory.php:184
    180▕             }
    181▕         }
    182▕
    183▕         // Build and return the client
  ➜ 184▕         if ($host['api_id'] !== null && $host['api_key'] !== null) {
    185▕             $clientBuilder->setApiKey($host['api_id'], $host['api_key']);
    186▕         }
    187▕
    188▕         return $clientBuilder->build();

      +23 vendor frames

  24  artisan:33
      Illuminate\Foundation\Console\Kernel::handle()
@ghost
Copy link
Author

ghost commented Mar 12, 2023

I am an idiot and had an outdated config file :-)

@ghost ghost closed this as completed Mar 12, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants