Skip to content

Commit

Permalink
add __initialize on ReflectionClassConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 2, 2024
1 parent 482f506 commit 8394aff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ReflectionClassConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 8394aff

Please sign in to comment.