diff --git a/config/ide-helper.php b/config/ide-helper.php index 3017f87..6eb5b85 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -285,7 +285,7 @@ return [ | */ 'macro_default_return_types' => [ - \Illuminate\Http\Client\Factory::class => \Illuminate\Http\Client\PendingRequest::class, + Illuminate\Http\Client\Factory::class => Illuminate\Http\Client\PendingRequest::class, ], /* diff --git a/src/Generator.php b/src/Generator.php index 493b164..87ba1b9 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -63,7 +63,7 @@ class Generator Macro::setDefaultReturnTypes($this->config->get('ide-helper.macro_default_return_types', [ \Illuminate\Http\Client\Factory::class => \Illuminate\Http\Client\PendingRequest::class, ])); - + // Make all interface classes absolute foreach ($this->interfaces as &$interface) { $interface = '\\' . ltrim($interface, '\\');