We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc9ca8 commit b64c050Copy full SHA for b64c050
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# CHANGELOG
2
3
+## [v3.0.3] - 2025-10-17
4
+
5
+- 修復 PHP 8.2 取得反射屬性名稱失敗 bug
6
7
## [v3.0.2] - 2025-10-17
8
9
- 重構核心邏輯優化性能
src/ImmutableBase.php
@@ -113,7 +113,7 @@ private function constructInitialize()
113
{
114
$this->ref ??= self::getReflection($this);
115
foreach ($this->ref->getAttributes() as $attr) {
116
- $set[$attr->name] = true;
+ $set[$attr->name ?? $attr->getName()] = true;
117
}
118
$this->mode ??= match (true) {
119
isset($set[DataTransferObject::class]) => 1,
0 commit comments