diff --git a/core/modules/update/src/Tests/UpdateTestBase.php b/core/modules/update/src/Tests/UpdateTestBase.php index 1b1c9f6..ee21003 100644 --- a/core/modules/update/src/Tests/UpdateTestBase.php +++ b/core/modules/update/src/Tests/UpdateTestBase.php @@ -32,16 +32,16 @@ /** * Refreshes the update status based on the desired available update scenario. * - * @param $xml_map + * @param array $xml_map * Array that maps project names to availability scenarios to fetch. The key * '#all' is used if a project-specific mapping is not defined. - * @param $url + * @param string $url * (optional) A string containing the URL to fetch update data from. * Defaults to 'update-test'. * * @see update_test_mock_page() */ - protected function refreshUpdateStatus($xml_map, $url = 'update-test') { + protected function refreshUpdateStatus(array $xml_map, $url = 'update-test') { // Tell the Update Manager module to fetch from the URL provided by // update_test module. $this->config('update.settings')->set('fetch.url', _url($url, array('absolute' => TRUE)))->save(); diff --git a/core/modules/update/src/UpdateFetcherInterface.php b/core/modules/update/src/UpdateFetcherInterface.php index 8ace958..0cc5078 100644 --- a/core/modules/update/src/UpdateFetcherInterface.php +++ b/core/modules/update/src/UpdateFetcherInterface.php @@ -22,7 +22,7 @@ * not include the path elements to specify a particular project, version, * site_key, etc. */ - public function getFetchBaseUrl($project); + public function getFetchBaseUrl(array $project); /** * Retrieves the project information. diff --git a/core/modules/update/src/UpdateManagerInterface.php b/core/modules/update/src/UpdateManagerInterface.php index 8c1ab56..bad98a1 100644 --- a/core/modules/update/src/UpdateManagerInterface.php +++ b/core/modules/update/src/UpdateManagerInterface.php @@ -68,7 +68,7 @@ public function getProjects(); * @param array $context * Reference to an array used for Batch API storage. */ - public function fetchDataBatch(&$context); + public function fetchDataBatch(array &$context); /** * Clears out all the available update data and initiates re-fetching. diff --git a/core/modules/update/src/UpdateProcessorInterface.php b/core/modules/update/src/UpdateProcessorInterface.php index d41a57e..b47671c 100644 --- a/core/modules/update/src/UpdateProcessorInterface.php +++ b/core/modules/update/src/UpdateProcessorInterface.php @@ -46,7 +46,7 @@ public function fetchData(); * @see \Drupal\update\UpdateProcessor::fetchData() * @see \Drupal\update\UpdateProcessor::processFetchTask() */ - public function createFetchTask($project); + public function createFetchTask(array $project); /** * Processes a task to fetch available update data for a single project. @@ -60,7 +60,7 @@ public function createFetchTask($project); * @return bool * TRUE if we fetched parsable XML, otherwise FALSE. */ - public function processFetchTask($project); + public function processFetchTask(array $project); /** * Retrieves the number of items in the update fetch queue. @@ -80,5 +80,5 @@ public function numberOfQueueItems(); * * @see \Drupal\Core\Queue\QueueInterface::deleteItem() */ - public function deleteQueueItem($item); + public function deleteQueueItem(\stdClass $item); } diff --git a/core/modules/update/tests/modules/update_test/update_test.module b/core/modules/update/tests/modules/update_test/update_test.module index 93c97f4..e6bf365 100644 --- a/core/modules/update/tests/modules/update_test/update_test.module +++ b/core/modules/update/tests/modules/update_test/update_test.module @@ -1,14 +1,14 @@ directoryList = array('update' => 'core/modules/update'); parent::setUp(); diff --git a/core/modules/update/tests/src/Unit/UpdateFetcherTest.php b/core/modules/update/tests/src/Unit/UpdateFetcherTest.php index 38bbb7d..fae083c 100644 --- a/core/modules/update/tests/src/Unit/UpdateFetcherTest.php +++ b/core/modules/update/tests/src/Unit/UpdateFetcherTest.php @@ -47,7 +47,7 @@ protected function setUp() { * @param string $site_key * A string to mimic an anonymous site key hash. * @param string $expected - * The expected url returned from UpdateFetcher::buildFetchUrl() + * The expected url returned from UpdateFetcher::buildFetchUrl(). * * @dataProvider providerTestUpdateBuildFetchUrl *