Skip to content

Commit

Permalink
[11.x] Static Analysis only ignore PHPStan error for (#52712)
Browse files Browse the repository at this point in the history
`staticMethod.notFound` on Facade usage.

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
crynobone authored Sep 9, 2024
1 parent 9c9201e commit 499b939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Context/ContextServiceProvider.php
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ public function register()
public function boot()
{
Queue::createPayloadUsing(function ($connection, $queue, $payload) {
/** @phpstan-ignore-next-line */
/** @phpstan-ignore staticMethod.notFound */
$context = Context::dehydrate();

return $context === null ? $payload : [
@@ -37,7 +37,7 @@ public function boot()
});

$this->app['events']->listen(function (JobProcessing $event) {
/** @phpstan-ignore-next-line */
/** @phpstan-ignore staticMethod.notFound */
Context::hydrate($event->job->payload()['illuminate:log:context'] ?? null);
});
}

0 comments on commit 499b939

Please sign in to comment.