feat(compiler): implement scoped callback support for dynamic method calls
- Add ATTR_SCOPED_CALLBACK attribute to track callback scope requirements
- Introduce getCallableScopeExpr method to generate proper scope expressions
- Modify call argument generation to wrap callbacks with scope information
- Update dynamic method call logic to preserve declaring class scope
- Replace legacy markRuntimeObjectMethodCall with markUnpackedScopedCallbackCall
- Add support for scoped callbacks in array functions like array_map
- Implement proper scope handling for nullsafe method calls
- Generate scoped callable wrappers in placeholder generator
- Add comprehensive tests for dynamic method lexical scope behavior
- Add tests for internal callback functions preserving method scope
|