Skip to content

Commit 9b46477

Browse files
committed
PHPStan "Access to private static property $instances"
1 parent 45f5944 commit 9b46477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EnumSerializableTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function __unserialize(array $data): void
7575

7676
$this->value = $value;
7777

78-
if (!isset(self::$instances[$class][$name])) {
79-
self::$instances[$class][$name] = $enumerator;
78+
if (!isset($this::$instances[$class][$name])) {
79+
$this::$instances[$class][$name] = $enumerator;
8080
}
8181
};
8282
$closure->bindTo($this, Enum::class)();

0 commit comments

Comments
 (0)