Skip to content

Rfc: inner class3#4

Open
withinboredom wants to merge 65 commits intomasterfrom
rfc/inner-class3
Open

Rfc: inner class3#4
withinboredom wants to merge 65 commits intomasterfrom
rfc/inner-class3

Conversation

@withinboredom
Copy link
Member

@withinboredom withinboredom commented Mar 24, 2025

Todos:

  • make namespace structure work with opcache
  • make inheritance work correctly (sees Outer\Middle and Other\Middle the same when using Middle on inherited classes)

Summary by CodeRabbit

  • New Features

    • Introduced robust support for inner classes with enhanced syntax and improved resolution of class scopes.
    • Expanded Reflection capabilities to determine class visibility (inner, private, protected, public).
    • Improved namespace management and autoloading for more reliable class discovery.
  • Bug Fixes

    • Clarified error messages for invalid nested class declarations, aiding quicker troubleshooting.
  • Tests

    • Added comprehensive tests covering inner class behavior, access modifiers, return types, and scope resolution.
    • Introduced tests for visibility rules and error handling related to inner classes and nested declarations.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant