CodeExplorer getStaticProperties example
/**
* @internal
*/
public function __sleep(): array
{ $properties =
[];
if (!
isset(self::
$defaultProperties[$c =
static::
class])) { self::
$defaultProperties[$c] =
get_class_vars($c);
foreach ((new \
ReflectionClass($c))->
getStaticProperties() as $k =>
$v) { unset(self::
$defaultProperties[$c][$k]);
} } foreach (self::
$defaultProperties[$c] as $k =>
$v) { if ($this->
$k !==
$v) { $properties[] =
$k;
} } return $properties;
}/**
* @internal
*/
public function __sleep(): array
{ $properties =
[];
if (!
isset(self::
$defaultProperties[$c =
static::
class])) { self::
$defaultProperties[$c] =
get_class_vars($c);
foreach ((new \
ReflectionClass($c))->
getStaticProperties() as $k =>
$v) { unset(self::
$defaultProperties[$c][$k]);
} } foreach (self::
$defaultProperties[$c] as $k =>
$v) { if ($this->
$k !==
$v) { $properties[] =
$k;
} } return $properties;
}