Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit daf14c3

Browse files
authored
Update return types (#1971)
1 parent 0c650b5 commit daf14c3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/MakeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MakeCommand extends Command
4040
*
4141
* @return void
4242
*/
43-
protected function configure()
43+
protected function configure(): void
4444
{
4545
$this->basePath = getcwd();
4646
$this->projectName = basename($this->basePath);
@@ -65,7 +65,7 @@ protected function configure()
6565
* @param \Symfony\Component\Console\Output\OutputInterface $output
6666
* @return int
6767
*/
68-
public function execute(InputInterface $input, OutputInterface $output)
68+
public function execute(InputInterface $input, OutputInterface $output): int
6969
{
7070
if (! $this->vagrantfileExists()) {
7171
$this->createVagrantfile();

src/WslApplyFeatures.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class WslApplyFeatures extends Command
4747
*
4848
* @return void
4949
*/
50-
protected function configure()
50+
protected function configure(): void
5151
{
5252
$this->basePath = getcwd();
5353
$this->projectName = basename($this->basePath);
@@ -67,7 +67,7 @@ protected function configure()
6767
* @param OutputInterface $output
6868
* @return int
6969
*/
70-
public function execute(InputInterface $input, OutputInterface $output)
70+
public function execute(InputInterface $input, OutputInterface $output): int
7171
{
7272
// Grab the current settings or create an example configuration
7373
$format = $input->getOption('json') ? 'json' : 'yaml';

src/WslCreateDatabaseCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class WslCreateDatabaseCommand extends Command
4040
*
4141
* @return void
4242
*/
43-
protected function configure()
43+
protected function configure(): void
4444
{
4545
$this->basePath = getcwd();
4646
$this->projectName = basename($this->basePath);
@@ -59,7 +59,7 @@ protected function configure()
5959
* @param OutputInterface $output
6060
* @return int
6161
*/
62-
public function execute(InputInterface $input, OutputInterface $output)
62+
public function execute(InputInterface $input, OutputInterface $output): int
6363
{
6464
// Grab the current settings or create an example configuration
6565
$format = $input->getOption('json') ? 'json' : 'yaml';
@@ -85,7 +85,7 @@ public function execute(InputInterface $input, OutputInterface $output)
8585
* @param array $options
8686
* @return mixed
8787
*/
88-
protected function parseSettingsFromFile(string $format, array $options)
88+
protected function parseSettingsFromFile(string $format, array $options): mixed
8989
{
9090
$SettingsClass = ($format === 'json') ? JsonSettings::class : YamlSettings::class;
9191
$filename = __DIR__."/../Homestead.{$format}";

src/WslCreateSiteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class WslCreateSiteCommand extends Command
4040
*
4141
* @return void
4242
*/
43-
protected function configure()
43+
protected function configure(): void
4444
{
4545
$this->basePath = getcwd();
4646
$this->projectName = basename($this->basePath);
@@ -59,7 +59,7 @@ protected function configure()
5959
* @param OutputInterface $output
6060
* @return int
6161
*/
62-
public function execute(InputInterface $input, OutputInterface $output)
62+
public function execute(InputInterface $input, OutputInterface $output): int
6363
{
6464
// Remove any existing nginx sites
6565
$shell_output = shell_exec('sudo rm -rf /etc/nginx/sites-available/*');

0 commit comments

Comments
 (0)