1 | <?php |
||
11 | class Storeman |
||
12 | { |
||
13 | /** |
||
14 | * @var Container |
||
15 | */ |
||
16 | protected $container; |
||
17 | |||
18 | public function __construct(Container $container = null) |
||
23 | |||
24 | /** |
||
25 | * Returns the DI container of this storeman instance. |
||
26 | * Some service names resolve to different implementations depending on the current vault which can be set as a context. |
||
27 | * E.g. "storageAdapter" resolves to the storage adapter implementation configured for the current vault. |
||
28 | * |
||
29 | * @param Vault $vault |
||
30 | * @return Container |
||
31 | */ |
||
32 | public function getContainer(Vault $vault = null): Container |
||
36 | |||
37 | /** |
||
38 | * Returns the configuration. |
||
39 | * |
||
40 | * @return Configuration |
||
41 | */ |
||
42 | public function getConfiguration(): Configuration |
||
46 | |||
47 | /** |
||
48 | * Returns a container of the configured vaults. |
||
49 | * |
||
50 | * @return VaultContainer |
||
51 | */ |
||
52 | public function getVaultContainer(): VaultContainer |
||
56 | |||
57 | public function synchronize(array $vaultTitles = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
||
76 | |||
77 | public function restore(int $toRevision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
||
90 | |||
91 | public function dump(string $targetPath, int $revision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
||
104 | |||
105 | /** |
||
106 | * Returns the highest revision number across all vaults. |
||
107 | * |
||
108 | * @return int |
||
109 | */ |
||
110 | public function getLastRevision(): ?int |
||
126 | |||
127 | /** |
||
128 | * Builds and returns a history of all synchronizations on record for this archive. |
||
129 | * |
||
130 | * @return Synchronization[][] |
||
131 | */ |
||
132 | public function buildSynchronizationHistory(): array |
||
155 | |||
156 | /** |
||
157 | * @param Vault[] $vaults |
||
158 | * @param string $lockName |
||
159 | */ |
||
160 | protected function acquireLocks(\Traversable $vaults, string $lockName) |
||
170 | |||
171 | /** |
||
172 | * @param Vault[] $vaults |
||
173 | * @param string $lockName |
||
174 | */ |
||
175 | protected function releaseLocks(\Traversable $vaults, string $lockName) |
||
185 | |||
186 | protected function getVaultForDownload(?int $revision, ?string $vaultTitle): ?Vault |
||
213 | } |
||
214 |
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: