Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 9, 2024
1 parent 651e957 commit ae17051
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Relations/BelongsToThrough.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ public function getFirstForeignKeyName()
$firstThroughParent = end($this->throughParents);

if ($firstThroughParent === false) {
// @codeCoverageIgnore
throw new RuntimeException('No "through" parent models were specified.');
}

Expand All @@ -357,6 +358,7 @@ public function getQualifiedFirstLocalKeyName()
$firstThroughParent = end($this->throughParents);

if ($firstThroughParent === false) {
// @codeCoverageIgnore
throw new RuntimeException('No "through" parent models were specified.');
}

Expand Down

0 comments on commit ae17051

Please sign in to comment.