Skip to content

Add syntactic support for primary constructors#63

Open
thekid wants to merge 8 commits into
masterfrom
feature/primary-constructors
Open

Add syntactic support for primary constructors#63
thekid wants to merge 8 commits into
masterfrom
feature/primary-constructors

Conversation

@thekid

@thekid thekid commented Jul 5, 2026

Copy link
Copy Markdown
Member

See https://wiki.php.net/rfc/primary-constructors and php/php-src#22510.

Implementation status

  • class T([params])
  • class T([params]) extends Base([arguments]) and forwarding, see here
  • Declaration order

Requires no change to the XP Compiler, this is all handled syntactically.

See also

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant