Inspectopedia
 
2024.3

'match' expression has only default arm and should be simplified

Info
New
Last modified: 03 December 2024

Reports the match expressions only containing a default arm. Such expressions are redundant and should be simplified.

See Match expression (php.net) for details.