barryvdh/laravel-ide-helper

Pusher PHP server + ide helper error

tarreislam opened this issue · 3 comments

Versions:

  • ide-helper Version: 2.13.0
  • Laravel Version: 10.24.0
  • PHP Version: 8.1.23

Description:

laradock@eb3649530bc6:/var/www$ art ide-helper:generate

   TypeError 

  Pusher\Pusher::__construct(): Argument #1 ($auth_key) must be of type string, null given, called in /var/www/vendor/munafio/chatify/src/ChatifyMessenge
r.php on line 32

  at vendor/pusher/pusher-php-server/src/Pusher.php:63
     59▕      * @param ClientInterface|null $client [optional] - a Guzzle client to use for all HTTP requests
     60▕      *
     61▕      * @throws PusherException Throws exception if any required dependencies are missing
     62▕      */
  ➜  63▕     public function __construct(string $auth_key, string $secret, string $app_id, array $options = [], ClientInterface $client = null)
     64▕     {
     65▕         $this->check_compatibility();
     66▕ 
     67▕         if (!is_null($client)) {

      +28 vendor frames

  29  artisan:37

Steps To Reproduce:

  • install pusher/pusher-php-server
  • run php artisan ide-helper:generate
mfn commented

+28 vendor frames

This is exactly the part which would be useful, sadly artisan console skips the important stuff.

It seems the way pusher is registered and invoked, maybe implicitly, via ide-helper is missig something.

Please get a full stacktrace, so we can better understand how it's invoked.

mfn commented

No feedback -> closing

Sorry, i pulled it and fixed it on another repo