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
After upgrading laravel/framework 6.11.0 I get: TypeError : Argument 2 passed to Illuminate\View\FileViewFinder::__construct() must be of the type array, null given
More info
Fails on \Illuminate\View\ViewServiceProvider::registerViewFinder, thinks $app['config']['view.paths'] is null.
<?phpdeclare(strict_types=1);
return [
/* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that should be checked for your views. Of course | the usual Laravel view path has already been registered for you. | */'paths' => [
resource_path('views'),
],
/* |-------------------------------------------------------------------------- | Compiled View Path |-------------------------------------------------------------------------- | | This option determines where all the compiled Blade templates will be | stored for your application. Typically, this is within the storage | directory. However, as usual, you are free to change this value. | */'compiled' => env(
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),
];
Description:
After upgrading
laravel/framework
6.11.0 I get:TypeError : Argument 2 passed to Illuminate\View\FileViewFinder::__construct() must be of the type array, null given
More info
Fails on
\Illuminate\View\ViewServiceProvider::registerViewFinder
, thinks$app['config']['view.paths']
is null.Can I get more context on this PR?
If I change the code in loadViewsFrom back to:
The problem goes away.
The text was updated successfully, but these errors were encountered: