Fork me on GitHub
a Sensio Labs Product

Insomnia (v3.50.0) edition

Rule class_keyword_remove

Converts ::class keywords to FQCN strings.

Warning

This rule is deprecated and will be removed in the next major version

Examples

Example #1

--- Original
+++ New
 <?php

 use Foo\Bar\Baz;

-$className = Baz::class;
+$className = 'Foo\Bar\Baz';

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.