Skip to content

Commit 7195d33

Browse files
moellekenlclaude
andcommitted
Document 0.22.1 fixes for private/protected constant reflection errors
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent e0ed213 commit 7195d33

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
### 0.22.1 (2026-07-13)
4+
5+
- fix: reflecting/parsing a private or protected class constant referenced from outside its declaring class (via `constant()` / `ReflectionParameter::getDefaultValue()`) threw an uncaught `\Error` and aborted the whole parse; now recovered gracefully
6+
- fix: `PHPConst` reflection path assigned an unnormalized `gettype()` string (e.g. `'NULL'` instead of `'null'`) when a constant's value couldn't be resolved
7+
- add regression coverage for parsing/reflecting code that references private/protected constants across class boundaries
8+
39
### 0.22.0 (2026-07-10)
410

511
- add source-range info to every model element: `endLine`, `startFilePos`, `endFilePos` (byte offsets), enabling precise `sed`/byte-range reads of a single declaration without loading the whole file

0 commit comments

Comments
 (0)