Skip to content

Add PHP 8.5 support and migrate from doctrine/annotations to native attributes#71

Open
michalwolinski wants to merge 3 commits into
allure-framework:mainfrom
michalwolinski:feature/php85-attributes-migration
Open

Add PHP 8.5 support and migrate from doctrine/annotations to native attributes#71
michalwolinski wants to merge 3 commits into
allure-framework:mainfrom
michalwolinski:feature/php85-attributes-migration

Conversation

@michalwolinski
Copy link
Copy Markdown

Summary

This PR introduces full PHP 8.5 support and removes the abandoned doctrine/annotations library, replacing legacy annotation handling with native PHP 8 attributes.

Changes

  • Upgrade PHP requirements to ^8.1 and PHPUnit to ^11.5
  • Upgrade Psalm to v6.16 and suppress new noisy strictness rules for a clean build
  • Remove all legacy annotation code
  • Refactor AttributeParser to rely exclusively on native PHP 8 attributes
  • Delete LegacyAttributeReader and all classes in src/Legacy/Annotation
  • Fix PHP 8.4/8.5 deprecations (implicitly nullable Throwable parameters)
  • Clean up tests: remove 80 legacy annotation tests and refactor AnnotationTestTrait
  • Migrate phpunit.xml.dist to PHPUnit 11 schema

Motivation

  • doctrine/annotations is no longer maintained
  • PHP native attributes provide better type safety and modern standards
  • Ensure compatibility with PHP 8.5

Notes

  • This is a breaking change for projects still relying on annotations
  • Users will need to update any custom annotations to native attributes

…ative attributes

- Upgrade PHP requirements to ^8.1 and PHPUnit to ^11.5 for PHP 8.5 support
- Upgrade Psalm to v6.16 and suppress new noisy strictness rules for clean build
- Remove abandoned doctrine/annotations library and all legacy annotation code
- Refactor AttributeParser to rely exclusively on native PHP 8 attributes
- Delete LegacyAttributeReader and all classes in src/Legacy/Annotation
- Fix PHP 8.4/8.5 deprecations (implicitly nullable Throwable  parameters)
- Clean up tests: remove 80 legacy annotation tests and refactor AnnotationTestTrait
- Migrate phpunit.xml.dist to PHPUnit 11 schema
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 6, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants