From a50f4f7817f7fba4cf13e5e00df2888d44fefc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barto=C5=A1?= Date: Thu, 1 Aug 2024 18:29:51 +0200 Subject: [PATCH] Fix PHPStan --- tools/phpstan.baseline.neon | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tools/phpstan.baseline.neon b/tools/phpstan.baseline.neon index 8a30b62..2c0e7d4 100644 --- a/tools/phpstan.baseline.neon +++ b/tools/phpstan.baseline.neon @@ -2,29 +2,14 @@ parameters: ignoreErrors: - message: "#^Cannot call method modify\\(\\) on DateTimeImmutable\\|false\\.$#" - count: 2 - path: ../src/FrozenClock.php - - - - message: "#^Cannot call method setTimezone\\(\\) on DateTimeImmutable\\|false\\.$#" count: 1 path: ../src/FrozenClock.php - - - message: "#^Property Orisai\\\\Clock\\\\FrozenClock\\:\\:\\$dt \\(DateTimeImmutable\\) does not accept \\(DateTimeImmutable\\|false\\)\\.$#" - count: 4 - path: ../src/FrozenClock.php - - message: "#^Cannot call method setTimezone\\(\\) on DateTimeImmutable\\|false\\.$#" count: 1 path: ../src/MeasurementClock.php - - - message: "#^Method Orisai\\\\Clock\\\\MeasurementClock\\:\\:now\\(\\) should return DateTimeImmutable but returns \\(DateTimeImmutable\\|false\\)\\.$#" - count: 1 - path: ../src/MeasurementClock.php - - message: "#^Parameter \\#1 \\$now of class Symfony\\\\Component\\\\Clock\\\\MockClock constructor expects DateTimeImmutable\\|string, DateTimeImmutable\\|false given\\.$#" count: 2