From b00d244a0ec5d4dff8bd6a2f2534a068ea9cc60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Novotn=C3=BD?= Date: Sat, 11 Jan 2020 18:33:57 +0100 Subject: [PATCH] Fix static methods --- src/Model/Values/TagSet.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Model/Values/TagSet.php b/src/Model/Values/TagSet.php index e553393..cc9e566 100644 --- a/src/Model/Values/TagSet.php +++ b/src/Model/Values/TagSet.php @@ -47,10 +47,10 @@ protected function tagIds() foreach ($this->names as $name) { // get tag hash from static cache or from memcache - $tag = static::$tags[$name] ?? $this->tagId($name); + $tag = self::$tags[$name] ?? $this->tagId($name); // store tag id to static cache - $ids[] = static::$tags[$name] = $tag; + $ids[] = self::$tags[$name] = $tag; } // return tag hashed ids @@ -67,7 +67,7 @@ protected function tagIds() public function resetTag($name) { // unset tag value from static cache - unset(static::$tags[$name]); + unset(self::$tags[$name]); // reset tag value in memcache return parent::resetTag($name); @@ -92,7 +92,7 @@ public function tagKey($name) */ public static function resetCachedTags(): void { - static::$tags = []; + self::$tags = []; } /** @@ -102,6 +102,6 @@ public static function resetCachedTags(): void */ public static function getCachedTags(): array { - return static::$tags; + return self::$tags; } }