Closed rolandsusans closed 4 years ago
Without changes, this line is producing a notice in cases when config is not specified.
if (is_array($this->app->config['view']['paths'])) {
...
}
e.g. @ see https://3v4l.org/YLXf7
The proper way to avoid receiving notice here is to check value with isset
before accessing it.
if (isset($this->app->config['view']['paths']) && is_array($this->app->config['view']['paths'])) {
...
}
5.8 isn't supported anymore but since this is also present on 6.x I'll leave this open.
This was fixed on 6.x recently
Description:
When I try to run integration tests without a specific config for
view
base
Illuminate\Support\ServiceProvider
fails @ line 97 ~ https://github.com/illuminate/support/blob/master/ServiceProvider.php#L94meanwhile PHP7.3 works without exception.
Steps To Reproduce:
Initiate app using PHP7.4