Skip to content

Conversation

@paulbalandan
Copy link
Member

@paulbalandan paulbalandan commented Jan 24, 2026

Description
The ReturnTypeWillChange attribute introduced in PHP 8.1 allows silencing of deprecation errors on PHP internal methods that will be using tentative return types to allow time to migrate code. I think this is now the time to do the migration.

Also, in case of union return types but the actual return is narrower, I used the narrower type.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan added refactor Pull requests that refactor code 4.7 labels Jan 24, 2026
@paulbalandan paulbalandan added the breaking change Pull requests that may break existing functionalities label Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.7 breaking change Pull requests that may break existing functionalities refactor Pull requests that refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants