From 84538f4cf1df6397b0d3e11109ac18b921685b9f Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:54:55 +0100 Subject: [PATCH] phpstan --- phpstan-baseline.neon | 20 ++++++++++++++++++++ src/Countries/Syria.php | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b41917f8..a8a60986 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,5 +1,25 @@ parameters: ignoreErrors: + - + message: "#^Access to undefined constant Spatie\\\\Holidays\\\\Countries\\\\Albania\\:\\:arafat\\.$#" + count: 1 + path: src/Countries/Albania.php + + - + message: "#^Access to undefined constant Spatie\\\\Holidays\\\\Countries\\\\Albania\\:\\:ashura\\.$#" + count: 1 + path: src/Countries/Albania.php + + - + message: "#^Access to undefined constant Spatie\\\\Holidays\\\\Countries\\\\Albania\\:\\:islamicNewYear\\.$#" + count: 1 + path: src/Countries/Albania.php + + - + message: "#^Access to undefined constant Spatie\\\\Holidays\\\\Countries\\\\Albania\\:\\:prophetMuhammadBirthday\\.$#" + count: 1 + path: src/Countries/Albania.php + - message: "#^Argument of an invalid type Carbon\\\\CarbonPeriod supplied for foreach, only iterables are supported\\.$#" count: 1 diff --git a/src/Countries/Syria.php b/src/Countries/Syria.php index ae6b9524..89d278b9 100644 --- a/src/Countries/Syria.php +++ b/src/Countries/Syria.php @@ -10,7 +10,7 @@ class Syria extends Country implements HasTranslations, Islamic { - use IslamicCalendar; + //use IslamicCalendar; use Translatable; public function countryCode(): string