Inspectopedia
 
2024.3

'get_class()' call can be replaced with '::class'

Info
New
Last modified: 03 December 2024

Reports the get_class() calls and suggests replacing them with ::class when PHP Language level is set to 8.0 or later.

See Allow ::class on objects (php.net) for details.