You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im on Laravel Framework 6.17.1 run into this :
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Lanin\Laravel\ApiDebugger\ServiceProvider::registerCollections() must be of the type array, null given, called in E:\laragon-x86\www\w4c\vendor\lanin\laravel-api-debugger\src\ServiceProvider.php on line 26
any clue why this happen?
one can temporary fix by copy paste array from config to this ServiceProvider.php :
public function boot()
{
$configPath = __DIR__ . '/../config/api-debugger.php';
$this->publishes([$configPath => config_path('api-debugger.php')]);
$this->mergeConfigFrom($configPath, 'api-debugger');
// Register collections only for debug environment.
$config = $this->app['config'];
if ($config['app.debug']) {
$this->registerCollections([
// Database queries.
\Lanin\Laravel\ApiDebugger\Collections\QueriesCollection::class,
// Show cache events.
\Lanin\Laravel\ApiDebugger\Collections\CacheCollection::class,
// Profile custom events.
\Lanin\Laravel\ApiDebugger\Collections\ProfilingCollection::class,
]);
}
}
The text was updated successfully, but these errors were encountered:
Hi, im on Laravel Framework 6.17.1 run into this :
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Lanin\Laravel\ApiDebugger\ServiceProvider::registerCollections() must be of the type array, null given, called in E:\laragon-x86\www\w4c\vendor\lanin\laravel-api-debugger\src\ServiceProvider.php on line 26
any clue why this happen?
one can temporary fix by copy paste array from config to this ServiceProvider.php :
The text was updated successfully, but these errors were encountered: