I then installed the opcache package but running opcache:clear or opcache:status gets me the following error.
Argument 1 passed to Illuminate\Http\Client\PendingRequest::withHeaders() must be of the type array, null given, called in /var/www/laravel/vendor/laravel/framework/src/Illuminate/Http/Client/Factory.php on line 272
at vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php:230
226| *
227| * @param array $headers
228| * @return $this
229| */
> 230| public function withHeaders(array $headers)
231| {
232| return tap($this, function ($request) use ($headers) {
233| return $this->options = array_merge_recursive($this->options, [
234| 'headers' => $headers,
+18 vendor frames
19 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
I wanted to use opcache and so I set up the following config in my php.ini file.
I then installed the opcache package but running opcache:clear or opcache:status gets me the following error.