Skip to content

Commit

Permalink
fix: Relationship orders null
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Apr 16, 2024
1 parent c694537 commit ee4db97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/support/src/Services/RelationshipJoiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function (array $where) use ($relationship): bool {
->distinct()
->select($relationshipQuery->getModel()->getTable() . '.*');

foreach ($relationshipQuery->getQuery()->orders as $order) {
foreach (($relationshipQuery->getQuery()->orders ?? []) as $order) {

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.3 - L11.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.3 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.2 - L11.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.2 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.1 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.3 - L11.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.3 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.1 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.2 - L10.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.

Check failure on line 95 in packages/support/src/Services/RelationshipJoiner.php

View workflow job for this annotation

GitHub Actions / P8.2 - L11.* - prefer-stable

Property Illuminate\Database\Query\Builder::$orders (array) on left side of ?? is not nullable.
if (! array_key_exists('column', $order)) {
continue;
}
Expand Down

0 comments on commit ee4db97

Please sign in to comment.