Skip to content

Commit

Permalink
test(phpstan): Fix PHPstan check (#3467196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Purer committed Aug 30, 2024
1 parent d1b7999 commit 7c714ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/close-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
7 changes: 6 additions & 1 deletion tests/src/Kernel/Framework/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ protected function setUp(): void {

/**
* {@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,
Expand Down

0 comments on commit 7c714ff

Please sign in to comment.