Fork me on GitHub
a Sensio Labs Product

Mountains (v3.2.1) edition

Rule class_keyword_remove

Warning

This rule is deprecated and will be removed on next major version.

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