diff --git a/src/Relations/BelongsToThrough.php b/src/Relations/BelongsToThrough.php index f2b00b3..8c6e6d9 100644 --- a/src/Relations/BelongsToThrough.php +++ b/src/Relations/BelongsToThrough.php @@ -341,8 +341,7 @@ public function getFirstForeignKeyName() $firstThroughParent = end($this->throughParents); if ($firstThroughParent === false) { - // @codeCoverageIgnore - throw new RuntimeException('No "through" parent models were specified.'); + throw new RuntimeException('No "through" parent models were specified.'); // @codeCoverageIgnore } return $this->prefix . $this->getForeignKeyName($firstThroughParent); @@ -358,8 +357,7 @@ public function getQualifiedFirstLocalKeyName() $firstThroughParent = end($this->throughParents); if ($firstThroughParent === false) { - // @codeCoverageIgnore - throw new RuntimeException('No "through" parent models were specified.'); + throw new RuntimeException('No "through" parent models were specified.'); // @codeCoverageIgnore } return $firstThroughParent->qualifyColumn($this->getLocalKeyName($firstThroughParent));