Skip to content

Commit

Permalink
Fix PHPStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 25, 2024
1 parent 5325ece commit a9787f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ private static function printableExceptionMessage(\Throwable $e) : string{
}

/**
* @param mixed[] $trace
* @param mixed[][] $trace
* @return string[]
*/
public static function printableExceptionInfo(\Throwable $e, $trace = null) : array{
Expand Down
5 changes: 0 additions & 5 deletions tests/phpstan/configs/actual-problems.neon
Original file line number Diff line number Diff line change
Expand Up @@ -840,11 +840,6 @@ parameters:
count: 1
path: ../../../src/utils/Utils.php

-
message: "#^Parameter \\#1 \\$trace of static method pocketmine\\\\utils\\\\Utils\\:\\:printableTrace\\(\\) expects array\\<int, array\\<string, mixed\\>\\>, array given\\.$#"
count: 1
path: ../../../src/utils/Utils.php

-
message: "#^Parameter \\#2 \\$file of class pocketmine\\\\thread\\\\ThreadCrashInfoFrame constructor expects string\\|null, mixed given\\.$#"
count: 1
Expand Down

0 comments on commit a9787f0

Please sign in to comment.