Fix PHPStan error

This commit is contained in:
Dylan K. Taylor 2024-11-25 14:32:17 +00:00
parent 5325ecee37
commit a9787f0d99
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 1 additions and 6 deletions

View File

@ -403,7 +403,7 @@ final class Utils{
} }
/** /**
* @param mixed[] $trace * @param mixed[][] $trace
* @return string[] * @return string[]
*/ */
public static function printableExceptionInfo(\Throwable $e, $trace = null) : array{ public static function printableExceptionInfo(\Throwable $e, $trace = null) : array{

View File

@ -840,11 +840,6 @@ parameters:
count: 1 count: 1
path: ../../../src/utils/Utils.php 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\\.$#" message: "#^Parameter \\#2 \\$file of class pocketmine\\\\thread\\\\ThreadCrashInfoFrame constructor expects string\\|null, mixed given\\.$#"
count: 1 count: 1