diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 554ed991..a5ca18f3 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,25 +1,5 @@ parameters: ignoreErrors: - - - message: "#^Unable to resolve the template type TKey in call to function collect$#" - count: 1 - path: src/Checks/QueueSize.php - - - - message: "#^Unable to resolve the template type TValue in call to function collect$#" - count: 1 - path: src/Checks/QueueSize.php - - - - message: "#^Unable to resolve the template type TKey in call to function collect$#" - count: 1 - path: src/Checks/SystemStats.php - - - - message: "#^Unable to resolve the template type TValue in call to function collect$#" - count: 1 - path: src/Checks/SystemStats.php - - message: "#^Method Laravel\\\\Pulse\\\\Livewire\\\\Cache\\:\\:cacheInteractions\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -115,16 +95,6 @@ parameters: count: 1 path: src/PulseServiceProvider.php - - - message: "#^Unable to resolve the template type TKey in call to function collect$#" - count: 1 - path: src/PulseServiceProvider.php - - - - message: "#^Unable to resolve the template type TValue in call to function collect$#" - count: 1 - path: src/PulseServiceProvider.php - - message: "#^Access to an undefined property object\\:\\:\\$hits\\.$#" count: 2 @@ -180,6 +150,26 @@ parameters: count: 1 path: src/Recorders/HttpRequests.php + - + message: "#^Unable to resolve the template type TKey in call to function collect$#" + count: 1 + path: src/Recorders/QueueSizes.php + + - + message: "#^Unable to resolve the template type TValue in call to function collect$#" + count: 1 + path: src/Recorders/QueueSizes.php + + - + message: "#^Unable to resolve the template type TKey in call to function collect$#" + count: 1 + path: src/Recorders/SystemStats.php + + - + message: "#^Unable to resolve the template type TValue in call to function collect$#" + count: 1 + path: src/Recorders/SystemStats.php + - message: "#^Call to an undefined method Illuminate\\\\Redis\\\\Connections\\\\Connection\\:\\:pipeline\\(\\)\\.$#" count: 1 diff --git a/src/Recorders/QueueSizes.php b/src/Recorders/QueueSizes.php index 40b572c3..667c2505 100644 --- a/src/Recorders/QueueSizes.php +++ b/src/Recorders/QueueSizes.php @@ -52,7 +52,7 @@ public function record(Beat $event): Collection return collect([]); } - return collect($this->config->get('pulse.queues'))->map(fn (string $queue) => new Entry('pulse_queue_sizes', [ + return collect($this->config->get('pulse.queues'))->map(fn (string $queue) => new Entry($this->table, [ 'date' => $event->time->toDateTimeString(), 'queue' => $queue, 'size' => $this->queue->size($queue), diff --git a/src/Recorders/SystemStats.php b/src/Recorders/SystemStats.php index d4c64832..905f1f2e 100644 --- a/src/Recorders/SystemStats.php +++ b/src/Recorders/SystemStats.php @@ -39,7 +39,7 @@ public function record(Beat $event): ?Entry return null; } - return new Entry('pulse_servers', [ + return new Entry($this->table, [ 'date' => $event->time->toDateTimeString(), 'server' => $this->config->get('pulse.server_name'), ...match (PHP_OS_FAMILY) {