Skip to content

Commit c40694e

Browse files
committed
stan
1 parent 7ecb152 commit c40694e

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

src/Commands/AddLocaleCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ class AddLocaleCommand extends TranslatorCommand implements PromptsForMissingInp
2121

2222
public function handle(): int
2323
{
24-
$locale = (string) $this->argument('locale');
25-
$source = (string) $this->argument('source');
24+
/** @var string $locale */
25+
$locale = $this->argument('locale');
26+
/** @var string $source */
27+
$source = $this->argument('source');
2628
$translate = (bool) $this->option('translate');
2729

2830
$translator = $this->getTranslator();

src/Commands/DeadCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class DeadCommand extends TranslatorCommand implements PromptsForMissingInput
2121

2222
public function handle(): int
2323
{
24+
/** @var string $locale */
2425
$locale = $this->argument('locale');
2526
$sync = (bool) $this->option('sync');
2627

src/Commands/MissingCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function formatPath(string $path): string
2525

2626
public function handle(): int
2727
{
28+
/** @var string $locale */
2829
$locale = $this->argument('locale');
2930
$sync = (bool) $this->option('sync');
3031

src/Commands/ProofreadCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class ProofreadCommand extends TranslatorCommand implements PromptsForMissingInp
2121

2222
public function handle(): int
2323
{
24+
/** @var string $locale */
2425
$locale = $this->argument('locale');
2526

2627
$translator = $this->getTranslator();

src/Commands/SortCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class SortCommand extends TranslatorCommand implements PromptsForMissingInput
2020

2121
public function handle(): int
2222
{
23+
/** @var string $locale */
2324
$locale = $this->argument('locale');
2425

2526
$translator = $this->getTranslator();

src/Commands/TranslatorCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class TranslatorCommand extends Command
1616
{
1717
public function getDriverName(): ?string
1818
{
19+
/** @var string */
1920
return $this->option('driver');
2021
}
2122

src/Commands/UntranslatedCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ class UntranslatedCommand extends TranslatorCommand implements PromptsForMissing
1919

2020
public function handle(): int
2121
{
22-
$source = (string) $this->argument('source');
23-
$target = (string) $this->argument('target');
22+
/** @var string $source */
23+
$source = $this->argument('source');
24+
/** @var string $target */
25+
$target = $this->argument('target');
2426
$translate = (bool) $this->option('translate');
2527

2628
$translator = $this->getTranslator();

0 commit comments

Comments
 (0)