Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update return types #1971

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MakeCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -65,7 +65,7 @@ protected function configure()
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
if (! $this->vagrantfileExists()) {
$this->createVagrantfile();
Expand Down
4 changes: 2 additions & 2 deletions src/WslApplyFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class WslApplyFeatures extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -67,7 +67,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Grab the current settings or create an example configuration
$format = $input->getOption('json') ? 'json' : 'yaml';
Expand Down
6 changes: 3 additions & 3 deletions src/WslCreateDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WslCreateDatabaseCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -59,7 +59,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Grab the current settings or create an example configuration
$format = $input->getOption('json') ? 'json' : 'yaml';
Expand All @@ -85,7 +85,7 @@ public function execute(InputInterface $input, OutputInterface $output)
* @param array $options
* @return mixed
*/
protected function parseSettingsFromFile(string $format, array $options)
protected function parseSettingsFromFile(string $format, array $options): mixed
{
$SettingsClass = ($format === 'json') ? JsonSettings::class : YamlSettings::class;
$filename = __DIR__."/../Homestead.{$format}";
Expand Down
4 changes: 2 additions & 2 deletions src/WslCreateSiteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WslCreateSiteCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -59,7 +59,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Remove any existing nginx sites
$shell_output = shell_exec('sudo rm -rf /etc/nginx/sites-available/*');
Expand Down