Skip to content

Commit b00d244

Browse files
committed
Fix static methods
1 parent 47c0c12 commit b00d244

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/Model/Values/TagSet.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ protected function tagIds()
4747

4848
foreach ($this->names as $name) {
4949
// get tag hash from static cache or from memcache
50-
$tag = static::$tags[$name] ?? $this->tagId($name);
50+
$tag = self::$tags[$name] ?? $this->tagId($name);
5151

5252
// store tag id to static cache
53-
$ids[] = static::$tags[$name] = $tag;
53+
$ids[] = self::$tags[$name] = $tag;
5454
}
5555

5656
// return tag hashed ids
@@ -67,7 +67,7 @@ protected function tagIds()
6767
public function resetTag($name)
6868
{
6969
// unset tag value from static cache
70-
unset(static::$tags[$name]);
70+
unset(self::$tags[$name]);
7171

7272
// reset tag value in memcache
7373
return parent::resetTag($name);
@@ -92,7 +92,7 @@ public function tagKey($name)
9292
*/
9393
public static function resetCachedTags(): void
9494
{
95-
static::$tags = [];
95+
self::$tags = [];
9696
}
9797

9898
/**
@@ -102,6 +102,6 @@ public static function resetCachedTags(): void
102102
*/
103103
public static function getCachedTags(): array
104104
{
105-
return static::$tags;
105+
return self::$tags;
106106
}
107107
}

0 commit comments

Comments
 (0)