File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
- - laravel-10-compatibility
8
7
pull_request :
9
8
10
9
jobs :
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ parameters:
10
10
checkGenericClassInNonGenericObjectType : false
11
11
12
12
# Level 9 is the highest level
13
- level : 8
13
+ level : 9
14
14
Original file line number Diff line number Diff line change @@ -31,10 +31,14 @@ public static function builderMacros(): array
31
31
public function boot (): void
32
32
{
33
33
$ this ->app ->make (EngineManager::class)->extend ('pgsql ' , function () {
34
- return new PostgresEngine (
35
- $ this ->app ->get ('db ' ),
36
- $ this ->app ->get ('config ' )->get ('scout.pgsql ' , [])
37
- );
34
+ /** @var \Illuminate\Database\ConnectionResolverInterface $db */
35
+ $ db = $ this ->app ->get ('db ' );
36
+ /** @var \Illuminate\Support\Facades\Config $config */
37
+ $ config = $ this ->app ->get ('config ' );
38
+ /** @var array<string, mixed> $pgScoutConfig */
39
+ $ pgScoutConfig = $ config ->get ('scout.pgsql ' , []);
40
+
41
+ return new PostgresEngine ($ db , $ pgScoutConfig );
38
42
});
39
43
40
44
foreach (self ::builderMacros () as $ macro => $ class ) {
You can’t perform that action at this time.
0 commit comments