Fork me on GitHub
a Sensio Labs Product

Remote Void (v2.18.5) edition

Rule final_static_access

Warning

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

You should use self_static_accessor instead.

Converts static access to self access in final classes.

Examples

Example #1

--- Original
+++ New
 <?php
 final class Sample
 {
     public function getFoo()
     {
-        return static::class;
+        return self::class;
     }
 }
The logo is © 2010-2014 Sensio Labs