diff --git a/src/ReflectionClassConstant.php b/src/ReflectionClassConstant.php index b5ff3c2..c45e684 100644 --- a/src/ReflectionClassConstant.php +++ b/src/ReflectionClassConstant.php @@ -215,4 +215,12 @@ public function __toString(): string (string) $value ); } + + /** + * Implementation of internal reflection initialization + */ + protected function __initialize(): void + { + parent::__construct($this->className, $this->getName()); + } }