PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Assignment can be replaced with operator assignment

Last modified: 16 May 2022

Reports the assignments that can be replaced with combined operator assignments (for example, +=).

In the following example, the assignment expression is replaced with the combined operator assignment.