diff --git a/core/modules/update/src/UpdateManager.php b/core/modules/update/src/UpdateManager.php index 0652430..e652227 100644 --- a/core/modules/update/src/UpdateManager.php +++ b/core/modules/update/src/UpdateManager.php @@ -175,7 +175,7 @@ public function projectStorage($key) { /** * {@inheritdoc} */ - public function fetchDataBatch(&$context) { + public function fetchDataBatch(array &$context) { if (empty($context['sandbox']['max'])) { $context['finished'] = 0; $context['sandbox']['max'] = $this->updateProcessor->numberOfQueueItems(); diff --git a/core/modules/update/src/UpdateProcessor.php b/core/modules/update/src/UpdateProcessor.php index d37f643..2b7c3ba 100644 --- a/core/modules/update/src/UpdateProcessor.php +++ b/core/modules/update/src/UpdateProcessor.php @@ -115,7 +115,7 @@ public function __construct(ConfigFactoryInterface $config_factory, QueueFactory /** * {@inheritdoc} */ - public function createFetchTask($project) { + public function createFetchTask(array $project) { if (empty($this->fetchTasks)) { $this->fetchTasks = $this->fetchTaskStore->getAll(); } @@ -140,7 +140,7 @@ public function fetchData() { /** * {@inheritdoc} */ - public function processFetchTask($project) { + public function processFetchTask(array $project) { global $base_url; // This can be in the middle of a long-running batch, so REQUEST_TIME won't @@ -265,7 +265,7 @@ public function claimQueueItem() { /** * {@inheritdoc} */ - public function deleteQueueItem($item) { + public function deleteQueueItem(\stdClass $item) { return $this->fetchQueue->deleteItem($item); }