Open Koc opened 5 years ago
Thank you for the proposal @Koc, I'll evaluate the case.
PS: it also possible to use instanceof
here.
Hi @kalessil , it seems that it's the same as one of the cases here: https://github.com/kalessil/phpinspectionsea/issues/1143#issuecomment-450931889
PS: it also possible to use instanceof here.
no, because in this context $resultBuilder
is FQCN, not an object.
@koc: understood, thank you =) @orklah: moving upper in my list =)
Marking as a bug, to catch my eye
Current behaviour (description/screenshot:)
For now code suggests only add
true
3rd argument toin_array
function.Expected behaviour
Would be nice suggest (and provide hotfix for it) for replasing this kind of code with
is_a
call.Environment details