diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index feaee0b..4e257eb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -96,12 +96,17 @@ parameters: path: app/src/ViewFunctions/SizeForHumans.php - - message: "#^Parameter \\#1 \\$finfo of function finfo_buffer expects resource, resource\\|false given\\.$#" + message: "#^Method App\\\\ViewFunctions\\\\SizeForHumans\\:\\:__invoke\\(\\) throws checked exception DivisionByZeroError but it's missing from the PHPDoc @throws tag\\.$#" + count: 1 + path: app/src/ViewFunctions/SizeForHumans.php + + - + message: "#^Parameter \\#1 \\$finfo of function finfo_buffer expects finfo, finfo\\|false given\\.$#" count: 1 path: tests/Controllers/ZipControllerTest.php - - message: "#^Parameter \\#1 \\$finfo of function finfo_buffer expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$finfo of function finfo_buffer expects finfo, finfo\\|false given\\.$#" count: 1 path: tests/Exceptions/ErrorHandlerTest.php