phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Catch implicit conversions in mod operator

Open ryium opened this issue 2 years ago • 1 comments

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

ryium avatar Jun 17 '23 19:06 ryium

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.

phpstan-bot avatar Jun 17 '23 19:06 phpstan-bot