Skip to content

Commit

Permalink
PHPStan: update baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Dec 5, 2023
1 parent c6bd8e3 commit 3ea70a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/Tracy/TracyPanelHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ final class TracyPanelHandler extends AbstractProcessingHandler implements IBarP
/** @var array<array<mixed>> */
private array $records = [];

/**
* @phpstan-impure
*/
public function getTab(): string
{
return Helpers::capture(function (): void {
Expand All @@ -26,6 +29,9 @@ public function getTab(): string
});
}

/**
* @phpstan-impure
*/
public function getPanel(): string
{
return Helpers::capture(function (): void {
Expand Down
5 changes: 0 additions & 5 deletions tools/phpstan.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ parameters:
count: 1
path: ../tests/Unit/Tracy/LazyTracyToPsrLoggerTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\) with ''\\|'0' will always evaluate to false\\.$#"
count: 2
path: ../tests/Unit/Tracy/TracyPanelHandlerTest.php

-
message: "#^Parameter \\#1 \\$record of method Monolog\\\\Handler\\\\AbstractProcessingHandler\\:\\:handle\\(\\) expects Monolog\\\\LogRecord, array\\<string, array\\|DateTimeImmutable\\|int\\|string\\>\\|Monolog\\\\LogRecord given\\.$#"
count: 2
Expand Down

0 comments on commit 3ea70a7

Please sign in to comment.