Skip to content

Commit

Permalink
Fixed static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 2, 2024
1 parent c24fb24 commit 2267834
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,7 @@ protected function castAttributeAsHashedString($key, #[\SensitiveParameter] $val
return Hash::make($value);
}

/** @phpstan-ignore-next-line */
if (! Hash::verifyConfiguration($value)) {
throw new RuntimeException("Could not verify the hashed value's configuration.");
}
Expand Down
3 changes: 3 additions & 0 deletions src/Illuminate/Hashing/HashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public function getDefaultDriver()
/**
* Verifies that the configuration is less than or equal to what is configured.
*
* @param array $value
* @return bool
*
* @internal
*/
public function verifyConfiguration($value)
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Log/Context/ContextServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function register()
public function boot()
{
Queue::createPayloadUsing(function ($connection, $queue, $payload) {
/** @phpstan-ignore-next-line */
$context = Context::dehydrate();

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

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

0 comments on commit 2267834

Please sign in to comment.