mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10231] Make the code easier to statically analyse #12198
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.