Inspectopedia
 
2024.3

'isset' can be replaced with coalesce

Info
New
Last modified: 03 December 2024

Reports the conditions using isset that can be safely replaced with expressions using the ?? null coalesce operator.

See Null coalesce operator (php.net) for details.