PhpStorm 2019.3 Help

Code Inspection: Result of assignment used

Reports assignment expressions where the result of the assignment isused in a containing expression. Such assignments are often indications of coding errorssuch as using = instead of ==.Moreover, they can result in confusion due to orderof operations, as evaluation of the assignment may effect the outer expression in unexpectedways.

Last modified: 20 February 2020