Covered all cases, fixed CS, added a new TODO

This commit is contained in:
ErickSkrauch
2020-06-13 01:55:02 +03:00
parent 0183e54442
commit 17f1794a4e
8 changed files with 35 additions and 17 deletions

View File

@@ -4,7 +4,6 @@ namespace common\models;
use common\behaviors\PrimaryKeyValueBehavior;
use Ramsey\Uuid\Uuid;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveQuery;
use yii\db\ActiveRecord;
/**
@@ -52,7 +51,8 @@ class MinecraftAccessKey extends ActiveRecord {
];
}
public function getAccount(): ActiveQuery {
public function getAccount(): AccountQuery {
/** @noinspection PhpIncompatibleReturnTypeInspection */
return $this->hasOne(Account::class, ['id' => 'account_id']);
}