韩天峰
|
ea02ec096f
|
feat(compiler): add constant expression validation and runtime attribute factories
- Implement ConstantExpressionValidationVisitor and ConstantExpressionValidator
- Add validation for attribute arguments, class constants, property defaults
- Support runtime factories for dynamic expressions in PHP 8.5
- Enable new expressions, object casts, closures in attribute contexts
- Add proper scope handling for attribute factory functions
- Integrate validation into preprocessing and stub generation pipeline
- Add comprehensive tests for valid and invalid constant expressions
- Update compiler base to handle attribute factory scope correctly
- Remove old unsupported attribute argument validation logic
|
1 month ago |