Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/NightwatchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@

$this->config = $this->app->make(Repository::class);

$this->nightwatchConfig = $this->config->all()['nightwatch'] ?? [];
$this->nightwatchConfig = (array) $this->config->get('nightwatch', []);

Check failure on line 187 in src/NightwatchServiceProvider.php

View workflow job for this annotation

GitHub Actions / Package static analysis

Property Laravel\Nightwatch\NightwatchServiceProvider::$nightwatchConfig (array{enabled?: bool, sampling?: array{requests?: float, commands?: float, exceptions?: float}, filtering?: array{ignore_cache_events?: bool, ignore_mail?: bool, ignore_notifications?: bool, ignore_outgoing_requests?: bool, ignore_queries?: bool, log_level?: 'alert'|'critical'|'debug'|'emergency'|'error'|'info'|'notice'|'warning'}, token?: string, deployment?: string, server?: string, ingest?: array{uri?: string, timeout?: float|int, connection_timeout?: float|int, event_buffer?: int}, capture_exception_source_code?: bool, ...}) does not accept array.
}

private function registerBindings(): void
Expand All @@ -197,7 +197,7 @@

private function registerLogger(): void
{
if (! isset($this->config->all()['logging']['channels']['nightwatch'])) {
if (! $this->config->has('logging.channels.nightwatch')) {
$this->config->set('logging.channels.nightwatch', [
'driver' => 'custom',
'via' => Logger::class,
Expand Down
Loading