3 ms·
I don’t believe so, no. So for impure or non-idempotent methods, the two versions would not be equivalent. Edit: it is indeed not the same https://3v4l.org/UNm
by deergomoo 6y ago
I don’t believe so, no. So for impure or non-idempotent methods, the two versions would not be equivalent.
Edit: it is indeed not the same https://3v4l.org/UNmAg https://3v4l.org/UNmAg
- withinboredom 6y agoThis is more correct: https://3v4l.org/nAtYp https://3v4l.org/nAtYp Note that the parens around the assignment are required to capture the assignment to `$result`.
- withinboredom 6y agoI opened a PR here: https://github.com/rectorphp/rector/pull/6101 https://github.com/rectorphp/rector/pull/6101
- hvdijk 6y agoThat looks like what I was expecting. Nice work!