Skip to content
Snippets Groups Projects
Commit 7c714fff authored by Klaus Purer's avatar Klaus Purer
Browse files

test(phpstan): Fix PHPstan check (#3467196)

parent d1b7999f
No related branches found
No related tags found
1 merge request!3test(phpstan): Fix PHPstan check
Pipeline #280129 passed
......@@ -13,4 +13,3 @@ jobs:
comment: |
Please open issues and pull requests on drupal.org: https://www.drupal.org/project/issues/graphql
Auto-closing this pull request.
......@@ -52,8 +52,13 @@ GQL;
/**
* {@inheritdoc}
*
* @todo For some reason, PHPStan wants to see a type hint for the level here,
* which is not correct.
*
* @phpstan-ignore-next-line
*/
public function log($level, $message, array $context = []): void {
public function log($level, string|\Stringable $message, array $context = []): void {
$this->loggerCalls[] = [
'level' => $level,
'message' => $message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment