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

Commit 3faf8b5

Browse files
committed
Add type hints for new interface and impementation
1 parent 91ee875 commit 3faf8b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(Random $random)
3434
*
3535
* @throws \Magento\Framework\Exception\LocalizedException
3636
*/
37-
public function generate()
37+
public function generate() : string
3838
{
3939
return md5($this->getRandomString());
4040
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ interface CryptKeyGeneratorInterface
1919
*
2020
* @return string
2121
*/
22-
public function generate();
22+
public function generate() : string;
2323
}

0 commit comments

Comments
 (0)