Skip to content

Commit a2c66ad

Browse files
authored
[11.x] Static Analysis only ignore PHPStan error for (#52712)
`staticMethod.notFound` on Facade usage. Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 44315db commit a2c66ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ protected function castAttributeAsHashedString($key, #[\SensitiveParameter] $val
14001400
return Hash::make($value);
14011401
}
14021402

1403-
/** @phpstan-ignore-next-line */
1403+
/** @phpstan-ignore staticMethod.notFound */
14041404
if (! Hash::verifyConfiguration($value)) {
14051405
throw new RuntimeException("Could not verify the hashed value's configuration.");
14061406
}

src/Illuminate/Log/Context/ContextServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function register()
2727
public function boot()
2828
{
2929
Queue::createPayloadUsing(function ($connection, $queue, $payload) {
30-
/** @phpstan-ignore-next-line */
30+
/** @phpstan-ignore staticMethod.notFound */
3131
$context = Context::dehydrate();
3232

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

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

0 commit comments

Comments
 (0)