@@ -107,7 +107,7 @@ protected function configure()
107107 * @throws FileSystemException
108108 * @throws LocalizedException
109109 */
110- protected function execute (InputInterface $ input , OutputInterface $ output )
110+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
111111 {
112112 $ this ->updateMemoryLimit ();
113113 $ this ->createAuthFile ();
@@ -162,7 +162,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
162162 * @return void
163163 * @throws LocalizedException
164164 */
165- private function createAuthFile ()
165+ private function createAuthFile (): void
166166 {
167167 $ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::COMPOSER_HOME );
168168
@@ -184,7 +184,7 @@ private function createAuthFile()
184184 * @throws InvalidArgumentException
185185 * @return void
186186 */
187- private function updateMemoryLimit ()
187+ private function updateMemoryLimit (): void
188188 {
189189 if (function_exists ('ini_set ' )) {
190190 // phpcs:ignore Magento2.Functions.DiscouragedFunction
@@ -217,7 +217,7 @@ private function updateMemoryLimit()
217217 * @param string $value
218218 * @return int
219219 */
220- private function getMemoryInBytes ($ value )
220+ private function getMemoryInBytes (string $ value ): int
221221 {
222222 $ unit = strtolower (substr ($ value , -1 , 1 ));
223223 $ value = (int ) $ value ;
0 commit comments