You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return exact value for final constants in ClassConstantAccessType::getResult()
Add getInitializerExprType() to ClassConstantReflection to retrieve the
concrete initializer value type, bypassing PHPDoc/native type declarations.
Use it in ClassConstantAccessType::getResult() for final constants, since
they cannot be overridden and their exact value is always known.
Update test expectations for final typed constants to expect exact values
instead of declared types. Add test cases for non-final class with non-final
typed constants to verify they correctly resolve to PHPDoc/native types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments