From f8cd40fdc1e24c819eab42284d5c538e52906ddf Mon Sep 17 00:00:00 2001 From: erikn69 Date: Tue, 21 Nov 2023 09:02:15 -0500 Subject: [PATCH] Solve styleci problem --- src/Database/Eloquent/Relations/BelongsTo.php | 3 ++- src/Database/Eloquent/Relations/HasMany.php | 1 + src/Database/Eloquent/Relations/HasOne.php | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Database/Eloquent/Relations/BelongsTo.php b/src/Database/Eloquent/Relations/BelongsTo.php index 17acccc..b96e59e 100755 --- a/src/Database/Eloquent/Relations/BelongsTo.php +++ b/src/Database/Eloquent/Relations/BelongsTo.php @@ -10,6 +10,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model * @template TChildModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseBelongsTo */ class BelongsTo extends BaseBelongsTo @@ -53,7 +54,7 @@ public function associate($model) $relationName = property_exists($this, 'relationName') ? $this->relationName : $this->relation; if ($model instanceof Model) { $this->child->setRelation($relationName, $model); - // proper unset // https://github.com/illuminate/database/commit/44411c7288fc7b7d4e5680cfcdaa46d348b5c981 + // proper unset // https://github.com/illuminate/database/commit/44411c7288fc7b7d4e5680cfcdaa46d348b5c981 } elseif ($this->child->isDirty($this->foreignKey)) { $this->child->unsetRelation($relationName); } diff --git a/src/Database/Eloquent/Relations/HasMany.php b/src/Database/Eloquent/Relations/HasMany.php index 98df329..69f2117 100755 --- a/src/Database/Eloquent/Relations/HasMany.php +++ b/src/Database/Eloquent/Relations/HasMany.php @@ -7,6 +7,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseHasMany */ class HasMany extends BaseHasMany diff --git a/src/Database/Eloquent/Relations/HasOne.php b/src/Database/Eloquent/Relations/HasOne.php index 17eb2a3..a810e60 100755 --- a/src/Database/Eloquent/Relations/HasOne.php +++ b/src/Database/Eloquent/Relations/HasOne.php @@ -8,6 +8,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BaseHasOne */ class HasOne extends BaseHasOne