diff --git a/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php b/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php index c57b9c7d9cc7..9ce0faf2af20 100755 --- a/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php +++ b/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php @@ -175,7 +175,7 @@ protected function getEagerModelKeys(array $models) // fail plus returns zero results, which should be what the developer expects. if (count($keys) === 0) { return [$this->related->getIncrementing() && - $this->related->getKeyType() === 'int' ? 0 : null]; + $this->related->getKeyType() === 'int' ? 0 : null, ]; } return array_values(array_unique($keys));