Fork me on GitHub
a Sensio Labs Product

Constitution (v3.0.0) edition

Rule class_keyword_remove

Converts ::class keywords to FQCN strings.

Examples

Example #1

--- Original
+++ New
 <?php

 use Foo\Bar\Baz;

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