Skip to content

Emit PHP 8 attributes alongside XP meta information - #195

Merged
thekid merged 3 commits into
masterfrom
refactor/emit-php-attributes
Aug 2, 2026
Merged

Emit PHP 8 attributes alongside XP meta information#195
thekid merged 3 commits into
masterfrom
refactor/emit-php-attributes

Conversation

@thekid

@thekid thekid commented Aug 2, 2026

Copy link
Copy Markdown
Member

This pull request changes the XP meta emitter to emit PHP 8 attributes alongside meta data. This ensures compatibility with XP 12 as well as XP 13. XP 13's class meta information no longer included annotations - its minimum required PHP version is PHP 8, which supports attributes as native syntax!

@@ -1,7 +1,5 @@
<?php namespace lang\ast\unittest\emit;

use lang\ast\emit\php\XpMeta;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an unused import.

@thekid
thekid merged commit 0d07aa4 into master Aug 2, 2026
16 checks passed
@thekid
thekid deleted the refactor/emit-php-attributes branch August 2, 2026 10:38
@thekid

thekid commented Aug 2, 2026

Copy link
Copy Markdown
Member Author

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