@@ -107,7 +107,7 @@ protected function configure()
107
107
* @throws FileSystemException
108
108
* @throws LocalizedException
109
109
*/
110
- protected function execute (InputInterface $ input , OutputInterface $ output )
110
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
111
111
{
112
112
$ this ->updateMemoryLimit ();
113
113
$ this ->createAuthFile ();
@@ -162,7 +162,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
162
162
* @return void
163
163
* @throws LocalizedException
164
164
*/
165
- private function createAuthFile ()
165
+ private function createAuthFile (): void
166
166
{
167
167
$ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::COMPOSER_HOME );
168
168
@@ -184,7 +184,7 @@ private function createAuthFile()
184
184
* @throws InvalidArgumentException
185
185
* @return void
186
186
*/
187
- private function updateMemoryLimit ()
187
+ private function updateMemoryLimit (): void
188
188
{
189
189
if (function_exists ('ini_set ' )) {
190
190
// phpcs:ignore Magento2.Functions.DiscouragedFunction
@@ -217,7 +217,7 @@ private function updateMemoryLimit()
217
217
* @param string $value
218
218
* @return int
219
219
*/
220
- private function getMemoryInBytes ($ value )
220
+ private function getMemoryInBytes (string $ value ): int
221
221
{
222
222
$ unit = strtolower (substr ($ value , -1 , 1 ));
223
223
$ value = (int ) $ value ;
0 commit comments