Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a2ae382

Browse files
committed
Add some type hints
1 parent 1fd5b0e commit a2ae382

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

setup/src/Magento/Setup/Model/ConfigGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function createCacheHostsConfig(array $data)
257257
*
258258
* @return array
259259
*/
260-
private function mapHostData($hostData)
260+
private function mapHostData(string $hostData) : array
261261
{
262262
$hostDataParts = explode(':', trim($hostData));
263263

setup/src/Magento/Setup/Model/CryptKeyGenerator.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ class CryptKeyGenerator implements CryptKeyGeneratorInterface
2020
*/
2121
private $random;
2222

23+
/**
24+
* CryptKeyGenerator constructor.
25+
*
26+
* @param Random $random
27+
*/
2328
public function __construct(Random $random)
2429
{
2530
$this->random = $random;
@@ -44,7 +49,7 @@ public function generate() : string
4449
*
4550
* @return string
4651
*/
47-
private function getRandomString()
52+
private function getRandomString() : string
4853
{
4954
return $this->random->getRandomString(ConfigOptionsListConstants::STORE_KEY_RANDOM_STRING_SIZE);
5055
}

0 commit comments

Comments
 (0)