Fork me on GitHub
a Sensio Labs Product

Remote Void (v2.18.1) edition

Rule class_keyword_remove

Converts ::class keywords to FQCN strings.

Examples

Example #1

--- Original
+++ New
@@ -2,4 +2,4 @@

 use Foo\Bar\Baz;

-$className = Baz::class;
+$className = 'Foo\Bar\Baz';
The logo is © 2010-2014 Sensio Labs