Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Aug 25, 2023
1 parent cc07d16 commit aa1aa2f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 32 deletions.
50 changes: 20 additions & 30 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Recorders/QueueSizes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/Recorders/SystemStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aa1aa2f

Please sign in to comment.