From 27f5363069ee0aa3d9fa8556051e98634c7a7bd2 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Thu, 3 Nov 2022 12:22:57 +0100 Subject: [PATCH] Fix PHP8 error: Non-static method cannot be called statically --- feiertage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feiertage.php b/feiertage.php index 56eda47..27b1e5b 100644 --- a/feiertage.php +++ b/feiertage.php @@ -26,11 +26,11 @@ abstract class Bundesland { const Schleswig_Holstein = 14; const Thueringen = 15; - public function Count() { + public static function Count() { return count(self::$Namen); } - public function GetName(int $land, bool $code = false) { + public static function GetName(int $land, bool $code = false) { if ($land >= 0 && $land < self::Count()) return ($code) ? self::$Namen[$land][1] : self::$Namen[$land][0]; else