Skip to content

Commit

Permalink
Remove FQCN type hints on properties
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 8, 2021
1 parent f4a219b commit 9ca4948
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Command/Descriptor/CliDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class CliDescriptor implements DumpDescriptorInterface
{
private CliDumper $dumper;
private $dumper;
private mixed $lastIdentifier = null;

public function __construct(CliDumper $dumper)
Expand Down
2 changes: 1 addition & 1 deletion Command/Descriptor/HtmlDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class HtmlDescriptor implements DumpDescriptorInterface
{
private HtmlDumper $dumper;
private $dumper;
private bool $initialized = false;

public function __construct(HtmlDumper $dumper)
Expand Down
2 changes: 1 addition & 1 deletion Command/ServerDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#[AsCommand(name: 'server:dump', description: 'Start a dump server that collects and displays dumps in a single place')]
class ServerDumpCommand extends Command
{
private DumpServer $server;
private $server;

/** @var DumpDescriptorInterface[] */
private array $descriptors;
Expand Down
4 changes: 2 additions & 2 deletions Dumper/ContextProvider/RequestContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*/
final class RequestContextProvider implements ContextProviderInterface
{
private RequestStack $requestStack;
private VarCloner $cloner;
private $requestStack;
private $cloner;

public function __construct(RequestStack $requestStack)
{
Expand Down
2 changes: 1 addition & 1 deletion Dumper/ContextProvider/SourceContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class SourceContextProvider implements ContextProviderInterface
private int $limit;
private ?string $charset;
private ?string $projectDir;
private ?FileLinkFormatter $fileLinkFormatter;
private $fileLinkFormatter;

public function __construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)
{
Expand Down
2 changes: 1 addition & 1 deletion Dumper/ContextualizedDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class ContextualizedDumper implements DataDumperInterface
{
private DataDumperInterface $wrappedDumper;
private $wrappedDumper;
private array $contextProviders;

/**
Expand Down
4 changes: 2 additions & 2 deletions Dumper/ServerDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*/
class ServerDumper implements DataDumperInterface
{
private Connection $connection;
private ?DataDumperInterface $wrappedDumper;
private $connection;
private $wrappedDumper;

/**
* @param string $host The server host
Expand Down
2 changes: 1 addition & 1 deletion Server/DumpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class DumpServer
{
private string $host;
private ?LoggerInterface $logger;
private $logger;

/**
* @var resource|null
Expand Down
4 changes: 2 additions & 2 deletions Tests/Fixtures/Php81Enums.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

class Php81Enums
{
public UnitEnumFixture $e1;
public BackedEnumFixture $e2;
public $e1;
public $e2;

public function __construct()
{
Expand Down

0 comments on commit 9ca4948

Please sign in to comment.