[TypeDeclaration] Skip mixed as on right of and on ParamTypeByMethodCallTypeRector
Fixes https://github.com/rectorphp/rector/issues/8872
Fixed 🎉 /cc @staabm
All checks have passed 🎉 @TomasVotruba I think it is ready.
I think this is rather specific fix that will fail for slightly different code syntax. There should be check for first type of $code or if the value type changed.
How would this behave with negated value?
$ok = ! \is_string($code) && self::isCodeOk($code);
negation check is invalid and will cause fatal error on the first place, since it typed param string on caller, see:
https://3v4l.org/Ouift
Let's ship it and see how to goes :+1: