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

Code Inspection: 'if' can be replaced with 'match' expression

Last modified: 16 May 2022

Reports the if statements inside if-elseif-else constructs that use strict comparisons (===) and could be replaced with match expressions.