Skip to content

Commit 19561ae

Browse files
committed
PHPStan Improvements
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 8bafaac commit 19561ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Pulse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function ingest(): int
302302
$ingest = $this->app->make(Ingest::class);
303303

304304
$count = $this->rescue(function () use ($entries, $ingest) {
305-
$ingest->ingest($entries);
305+
$ingest->ingest($entries); // @phpstan-ignore argument.type
306306

307307
return $entries->count();
308308
}) ?? 0;
@@ -433,7 +433,7 @@ public function user(callable $callback): self
433433
throw new RuntimeException('The configured user resolver does not support setting user fields');
434434
}
435435

436-
$resolver->setFieldResolver($callback); // @phpstan-ignore method.nonObject
436+
$resolver->setFieldResolver($callback);
437437

438438
return $this;
439439
}

src/Storage/DatabaseStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function store(Collection $items): void
113113

114114
$valueChunks->each(fn ($chunk) => $this->connection()
115115
->table('pulse_values')
116-
->upsert($chunk->all(), ['type', 'key_hash'], ['timestamp', 'value'])
116+
->upsert($chunk->all(), ['type', 'key_hash'], ['timestamp', 'value']) // @phpstan-ignore method.nonObject
117117
);
118118
}, 3);
119119
}

0 commit comments

Comments
 (0)