diff --git a/Cloner/Stub.php b/Cloner/Stub.php index 7e9eb6d5..7f6d05d3 100644 --- a/Cloner/Stub.php +++ b/Cloner/Stub.php @@ -48,7 +48,7 @@ public function __sleep(): array { $properties = []; - if (!isset(self::$defaultProperties[$c = \get_class($this)])) { + if (!isset(self::$defaultProperties[$c = static::class])) { self::$defaultProperties[$c] = get_class_vars($c); foreach ((new \ReflectionClass($c))->getStaticProperties() as $k => $v) {