Fork me on GitHub
a Sensio Labs Product

I ate three cookies 🍪 (v3.40.2) edition

Rule phpdoc_readonly_class_comment_to_keyword

Converts readonly comment on classes to the readonly keyword.


Using this rule is risky

If classes marked with @readonly annotation were extended anyway, applying this fixer may break the inheritance for their child classes.


Example #1

--- Original
+++ New
-    /** @readonly */
-    class C {
+    readonly class C {

Source class