diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e69de29..6d4a46d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -0,0 +1,2 @@ +includes: + - vendor/larastan/larastan/extension.neon diff --git a/src/DockerMinionServiceProvider.php b/src/DockerMinionServiceProvider.php index 1e8f890..415d2b2 100644 --- a/src/DockerMinionServiceProvider.php +++ b/src/DockerMinionServiceProvider.php @@ -39,7 +39,7 @@ public function boot() if (boolval(config('docker-minion.watch-docker'))) { $this->eventStream = $this->docker->systemEvents(); - $this->eventStream->onFrame(fn ($event) => event(new DockerChangedEvent($event))); + $this->eventStream->onFrame(fn ($event) => event(new DockerChangedEvent($event))); //@phpstan-ignore-line } } catch (\Exception $e) { Log::warning(sprintf('Could not connect to Docker Daemon: %s', $e->getMessage())); diff --git a/src/Jobs/DockerStatus.php b/src/Jobs/DockerStatus.php deleted file mode 100644 index 3a408c6..0000000 --- a/src/Jobs/DockerStatus.php +++ /dev/null @@ -1,35 +0,0 @@ -get('docker-status'); - if ($dockerStatus === null) { - $dockerStatus = []; - } - $docker = Docker::create(); - $newDockerStatus = $docker->containerList(); - } -}