Skip to content

Commit 7c714ff

Browse files
author
Klaus Purer
committed
test(phpstan): Fix PHPstan check (#3467196)
1 parent d1b7999 commit 7c714ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/close-pull-requests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ jobs:
1313
comment: |
1414
Please open issues and pull requests on drupal.org: https://www.drupal.org/project/issues/graphql
1515
Auto-closing this pull request.
16-

tests/src/Kernel/Framework/LoggerTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ protected function setUp(): void {
5252

5353
/**
5454
* {@inheritdoc}
55+
*
56+
* @todo For some reason, PHPStan wants to see a type hint for the level here,
57+
* which is not correct.
58+
*
59+
* @phpstan-ignore-next-line
5560
*/
56-
public function log($level, $message, array $context = []): void {
61+
public function log($level, string|\Stringable $message, array $context = []): void {
5762
$this->loggerCalls[] = [
5863
'level' => $level,
5964
'message' => $message,

0 commit comments

Comments
 (0)