Skip to content

v4.0.0: PHP 8.0#20

Draft
gnugat wants to merge 18 commits intomainfrom
prepare-4-0-0
Draft

v4.0.0: PHP 8.0#20
gnugat wants to merge 18 commits intomainfrom
prepare-4-0-0

Conversation

@gnugat
Copy link
Member

@gnugat gnugat commented Feb 13, 2026

Dropped support for PHP <8.0

New features:

  • added Attribute model (PHP 8.0 attributes)
  • added attributes support to Objekt, Contract, Method, Property, Argument and Constant
  • added union type support in Type (e.g. string|int, DateTime|null)
  • added mixed type hint support in Type
  • added support for class property types
  • added constructor property promotion support (visibility on Argument)
  • added support for nullable typehints

AI disclosure: used Claude Code (v2.1.39, Opus 4.6), to help with the chores and the code review.

@gnugat gnugat self-assigned this Feb 13, 2026
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