Skip to content

Add AddReturnTypeWillChangeRector for PHP 8.1 compatibility - #28

Merged
GeorgII-web merged 1 commit into
masterfrom
php7-package-in-php8-env
Sep 14, 2026
Merged

GeorgII-web merged 1 commit into
masterfrom
php7-package-in-php8-env

Conversation

@GeorgII-web

Copy link
Copy Markdown
Owner

Introduce a new rector that adds the #[ReturnTypeWillChange] attribute to methods with incompatible return types downgraded for PHP 7.4, ensuring compatibility with PHP 8.1+. Register the rule in the PHP 7.4 config.

Introduce a new rector that adds the `#[ReturnTypeWillChange]` attribute to methods with incompatible return types downgraded for PHP 7.4, ensuring compatibility with PHP 8.1+. Register the rule in the PHP 7.4 config.
@GeorgII-web
GeorgII-web merged commit 92cd7e1 into master Sep 14, 2026
1 check passed
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