Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 807 Bytes

RULES.md

File metadata and controls

40 lines (30 loc) · 807 Bytes

2 Rules Overview

CompleteDynamicPropertiesForYii2ActiveRecordRector

Add missing dynamic properties

+/**
+ * @property int $value
+ */
 class SomeClass extends \yii\db\ActiveRecord
 {
     public function set()
     {
         $this->value = 5;
     }
 }

CompleteMethodTypingForYii2QueryLinkedWithARRector

Add missing types for methods

+/**
+ * @method Some|null one($db = null)
+ * @method Some[] all($db = null)
+ */
 class SomeQuery extends \yii\db\ActiveQuery
 {
 }