1 | <?php |
||
8 | class DocumentStore |
||
9 | { |
||
10 | /** |
||
11 | * @var Engine |
||
12 | */ |
||
13 | protected $engine; |
||
14 | |||
15 | /** |
||
16 | * @var EncoderInterface |
||
17 | */ |
||
18 | protected $encoder; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $namespace; |
||
24 | |||
25 | /** |
||
26 | * @var \League\Flysystem\FilesystemInterface |
||
27 | */ |
||
28 | protected $filesystem; |
||
29 | |||
30 | /** |
||
31 | * Create a RecordStore instance. |
||
32 | * |
||
33 | * @param Engine $engine |
||
34 | * @param string $namespace |
||
35 | */ |
||
36 | 14 | public function __construct(Engine $engine, $namespace) |
|
43 | |||
44 | 2 | public function getNamespace() |
|
48 | |||
49 | 1 | public function truncate() |
|
59 | |||
60 | 3 | public function insertDocument(Identifiable $document) |
|
74 | |||
75 | 2 | public function updateDocument(Identifiable $document) |
|
86 | |||
87 | 1 | public function removeDocument($documentId) |
|
93 | |||
94 | 1 | public function findDocument($documentId) |
|
101 | |||
102 | 3 | public function scanDocuments(callable $filter = null, $limit = null) |
|
122 | |||
123 | 6 | protected function path($id) |
|
127 | |||
128 | 1 | protected function generateId() |
|
133 | } |
||
134 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: