phpstan-src
phpstan-src copied to clipboard
Catch implicit conversions in mod operator
Catch deprecated implicit type conversions that occur in PHP 8.1 and later. The following BinaryOp that may cause deprecation.
This PR is part of https://github.com/phpstan/phpstan/issues/8288 and change regarding the mod operator of https://github.com/phpstan/phpstan-src/pull/2450
※O = safe, D = deprecated, X = not safe
% Mod
| L \ R | int | float | string | numeric-string | Stringable | array |
|---|---|---|---|---|---|---|
| int | O | D | X | D | X | X |
| float | D | D | X | D | X | X |
| string | X | X | X | X | X | X |
| numeric-string | D | D | X | D | X | X |
| Stringable | X | X | X | X | X | X |
| array | X | X | X | X | X | X |
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.