Inspectopedia
 
2024.3

'match' expression can be replace with ternary expression

Info
New
Last modified: 03 December 2024

Reports the match expressions containing a default arm and a single non-default arm. Such match expressions can be replaced with ternary expressions.

See Match expression (php.net) for details.