Skip to content

Commit b6ae126

Browse files
committed
Cast elastic.scout_driver.refresh_documents config to boolean value
1 parent 9b15115 commit b6ae126

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ parameters:
55
count: 2
66
path: src/Engine.php
77

8-
-
9-
message: "#^Property Elastic\\\\ScoutDriver\\\\Engine\\:\\:\\$refreshDocuments \\(bool\\) does not accept mixed\\.$#"
10-
count: 1
11-
path: src/Engine.php
12-
138
-
149
message: "#^Cannot call method extend\\(\\) on mixed\\.$#"
1510
count: 1

src/Engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(
3535
ModelFactoryInterface $modelFactory,
3636
IndexManager $indexManager
3737
) {
38-
$this->refreshDocuments = config('elastic.scout_driver.refresh_documents');
38+
$this->refreshDocuments = (bool)config('elastic.scout_driver.refresh_documents');
3939

4040
$this->documentManager = $documentManager;
4141
$this->documentFactory = $documentFactory;

0 commit comments

Comments
 (0)