We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23bcea commit 71ce832Copy full SHA for 71ce832
tests/Integration/Queries/RawQueryTest.php
@@ -472,11 +472,12 @@ public function test_search_result_can_be_cached(): void
472
$cacheStore = Cache::store('file');
473
$cacheStore->clear();
474
475
- $found = $cacheStore->rememberForever('raw_search_result', static function () {
476
- return Book::searchQuery(['match_all' => new stdClass()])
+ $found = $cacheStore->rememberForever(
+ 'raw_search_result',
477
+ static fn () => Book::searchQuery(['match_all' => new stdClass()])
478
->sort('id')
- ->execute();
479
- });
+ ->execute()
480
+ );
481
482
$this->assertFoundModels($target, $found);
483
}
0 commit comments