The expression return App\Model\Article...cle_id' => $articleId)) returns the type yii\db\ActiveRecord which includes types incompatible with the type-hinted return App\Model\ArticleMeta|null.
Loading history...
12
'article_id' => $articleId,
13
]);
14
}
15
16
2
public static function create(int $articleId, string $content): ArticleMeta