[PR #10231] Make the code easier to statically analyse #12198

Open
opened 2026-01-22 16:13:15 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10231

State: closed
Merged: Yes


While working on migrating the codebase to PHP 8, I noticed that a rule (NullToStrictStringFuncCallArgRector) often triggered that consists in adding casts to string, because internal functions have become more strict in PHP 8.1 (they no longer accept anything than a string).

I tried finding why those arguments were not considered already strings, and tried to fix some of that with this PR.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10231 **State:** closed **Merged:** Yes --- While working on migrating the codebase to PHP 8, I noticed that a rule (`NullToStrictStringFuncCallArgRector`) often triggered that consists in adding casts to string, because internal functions have become more strict in PHP 8.1 (they no longer accept anything than a string). I tried finding why those arguments were not considered already strings, and tried to fix some of that with this PR.
admin added the pull-request label 2026-01-22 16:13:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12198