Skip to content

Commit

Permalink
refactor: add return types to console/commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorodriguesroque committed Nov 10, 2024
1 parent 1affb67 commit 730271d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/ConvertNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ConvertNotifications extends Command

protected $description = 'Convert notifications to new format';

public function handle()
public function handle(): int
{
$array = [];

Expand Down
3 changes: 3 additions & 0 deletions app/Console/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ protected function askForStar(): void
}
}

/**
* @return array<string, mixed>
*/
protected function getUserData(): array
{
return [
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:
paths:
- app/
# Level 9 is the highest level
level: 9
level: max
excludePaths:
- ./app/Spotlight
- ./app/SocialProviders
Expand Down

0 comments on commit 730271d

Please sign in to comment.