Skip to content

Commit

Permalink
Fix whenAggregated when default is not specified
Browse files Browse the repository at this point in the history
laravel#47417 intoduced whenAggregated method to ConditionallyLoadsAttributes trait but it returns null instead of MissingValue when the default value is not specified
  • Loading branch information
lovePizza authored Dec 30, 2023
1 parent 06b6921 commit 683c8a4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/Integration/Http/ResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,6 @@ public function testResourcesMayHaveOptionalRelationshipAggregates()
'data' => [
'id' => 5,
'title' => 'Test Title',
'average_rating' => null,
'minimum_rating' => null,
'maximum_rating' => 'Default Value',
],
]);
Expand Down

0 comments on commit 683c8a4

Please sign in to comment.