Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5818ed

Browse files
committed
Remove FQCN type hints on properties
1 parent c6f326c commit d5818ed

30 files changed

+51
-52
lines changed

Application.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ class Application implements ResetInterface
7272
{
7373
private array $commands = [];
7474
private bool $wantHelps = false;
75-
private ?Command $runningCommand = null;
75+
private $runningCommand = null;
7676
private string $name;
7777
private string $version;
78-
private ?CommandLoaderInterface $commandLoader = null;
78+
private $commandLoader = null;
7979
private bool $catchExceptions = true;
8080
private bool $autoExit = true;
81-
private InputDefinition $definition;
82-
private HelperSet $helperSet;
83-
private ?EventDispatcherInterface $dispatcher = null;
84-
private Terminal $terminal;
81+
private $definition;
82+
private $helperSet;
83+
private $dispatcher = null;
84+
private $terminal;
8585
private string $defaultCommand;
8686
private bool $singleCommand = false;
8787
private bool $initialized = false;
88-
private SignalRegistry $signalRegistry;
88+
private $signalRegistry;
8989
private array $signalsToDispatchEvent = [];
9090

9191
public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN')

CI/GithubActionReporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class GithubActionReporter
2222
{
23-
private OutputInterface $output;
23+
private $output;
2424

2525
/**
2626
* @see https://github.com/actions/toolkit/blob/5e5e1b7aacba68a53836a34db4a288c3c1c1585b/packages/core/src/command.ts#L80-L85

Command/Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ class Command
4747
*/
4848
protected static $defaultDescription;
4949

50-
private ?Application $application = null;
50+
private $application = null;
5151
private ?string $name = null;
5252
private ?string $processTitle = null;
5353
private array $aliases = [];
54-
private InputDefinition $definition;
54+
private $definition;
5555
private bool $hidden = false;
5656
private string $help = '';
5757
private string $description = '';
58-
private ?InputDefinition $fullDefinition = null;
58+
private $fullDefinition = null;
5959
private bool $ignoreValidationErrors = false;
6060
private ?\Closure $code = null;
6161
private array $synopsis = [];
6262
private array $usages = [];
63-
private ?HelperSet $helperSet = null;
63+
private $helperSet = null;
6464

6565
public static function getDefaultName(): ?string
6666
{

Command/HelpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class HelpCommand extends Command
2929
{
30-
private Command $command;
30+
private $command;
3131

3232
/**
3333
* {@inheritdoc}

Command/LazyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
final class LazyCommand extends Command
2626
{
27-
private \Closure|Command $command;
27+
private $command;
2828
private ?bool $isEnabled;
2929

3030
public function __construct(string $name, array $aliases, string $description, bool $isHidden, \Closure $commandFactory, ?bool $isEnabled = true)

Command/LockableTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Console\Exception\LogicException;
1515
use Symfony\Component\Lock\LockFactory;
16-
use Symfony\Component\Lock\LockInterface;
1716
use Symfony\Component\Lock\Store\FlockStore;
1817
use Symfony\Component\Lock\Store\SemaphoreStore;
1918

@@ -24,7 +23,7 @@
2423
*/
2524
trait LockableTrait
2625
{
27-
private ?LockInterface $lock = null;
26+
private $lock = null;
2827

2928
/**
3029
* Locks a command.

CommandLoader/ContainerCommandLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class ContainerCommandLoader implements CommandLoaderInterface
2424
{
25-
private ContainerInterface $container;
25+
private $container;
2626
private array $commandMap;
2727

2828
/**

Cursor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
final class Cursor
2020
{
21-
private OutputInterface $output;
21+
private $output;
2222
private $input;
2323

2424
/**

Descriptor/ApplicationDescription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ApplicationDescription
2424
{
2525
public const GLOBAL_NAMESPACE = '_global';
2626

27-
private Application $application;
27+
private $application;
2828
private ?string $namespace;
2929
private bool $showHidden;
3030
private array $namespaces;

Event/ConsoleEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ConsoleEvent extends Event
2525
{
2626
protected $command;
2727

28-
private InputInterface $input;
29-
private OutputInterface $output;
28+
private $input;
29+
private $output;
3030

3131
public function __construct(?Command $command, InputInterface $input, OutputInterface $output)
3232
{

0 commit comments

Comments
 (0)