Skip to content

Commit 401f794

Browse files
committed
Remove FQCN type hints on properties
1 parent 81748f3 commit 401f794

34 files changed

+46
-48
lines changed

Argument/ServiceLocatorArgument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ServiceLocatorArgument implements ArgumentInterface
2222
{
2323
use ReferenceSetArgumentTrait;
2424

25-
private ?TaggedIteratorArgument $taggedIteratorArgument = null;
25+
private $taggedIteratorArgument = null;
2626

2727
/**
2828
* @param Reference[]|TaggedIteratorArgument $values

Compiler/AbstractRecursivePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
3232
protected $currentId;
3333

3434
private bool $processExpressions = false;
35-
private ExpressionLanguage $expressionLanguage;
35+
private $expressionLanguage;
3636
private bool $inExpression = false;
3737

3838
/**

Compiler/AnalyzeServiceReferencesPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
*/
3131
class AnalyzeServiceReferencesPass extends AbstractRecursivePass
3232
{
33-
private ServiceReferenceGraph $graph;
34-
private ?Definition $currentDefinition = null;
33+
private $graph;
34+
private $currentDefinition = null;
3535
private bool $onlyConstructorArguments;
3636
private bool $hasProxyDumper;
3737
private bool $lazy;

Compiler/CheckTypeDeclarationsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ final class CheckTypeDeclarationsPass extends AbstractRecursivePass
6262
private bool $autoload;
6363
private array $skippedIds;
6464

65-
private ExpressionLanguage $expressionLanguage;
65+
private $expressionLanguage;
6666

6767
/**
6868
* @param bool $autoload Whether services who's class in not loaded should be checked or not.

Compiler/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
*/
2222
class Compiler
2323
{
24-
private PassConfig $passConfig;
24+
private $passConfig;
2525
private array $log = [];
26-
private ServiceReferenceGraph $serviceReferenceGraph;
26+
private $serviceReferenceGraph;
2727

2828
public function __construct()
2929
{

Compiler/InlineServiceDefinitionsPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
*/
2525
class InlineServiceDefinitionsPass extends AbstractRecursivePass
2626
{
27-
private ?AnalyzeServiceReferencesPass $analyzingPass;
27+
private $analyzingPass;
2828
private array $cloningIds = [];
2929
private array $connectedIds = [];
3030
private array $notInlinedIds = [];
3131
private array $inlinedIds = [];
3232
private array $notInlinableIds = [];
33-
private ?ServiceReferenceGraph $graph = null;
33+
private $graph = null;
3434

3535
public function __construct(AnalyzeServiceReferencesPass $analyzingPass = null)
3636
{

Compiler/PassConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PassConfig
2828
public const TYPE_OPTIMIZE = 'optimization';
2929
public const TYPE_REMOVE = 'removing';
3030

31-
private MergeExtensionConfigurationPass $mergePass;
31+
private $mergePass;
3232
private array $afterRemovingPasses;
3333
private array $beforeOptimizationPasses;
3434
private array $beforeRemovingPasses = [];

Compiler/ResolveInvalidReferencesPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
*/
3030
class ResolveInvalidReferencesPass implements CompilerPassInterface
3131
{
32-
private ContainerBuilder $container;
33-
private RuntimeException $signalingException;
32+
private $container;
33+
private $signalingException;
3434
private string $currentId;
3535

3636
/**

Compiler/ResolveParameterPlaceHoldersPass.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\DependencyInjection\Definition;
1616
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
17-
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
1817

1918
/**
2019
* Resolves all parameter placeholders "%somevalue%" to their real values.
@@ -23,7 +22,7 @@
2322
*/
2423
class ResolveParameterPlaceHoldersPass extends AbstractRecursivePass
2524
{
26-
private ParameterBagInterface $bag;
25+
private $bag;
2726

2827
public function __construct(
2928
private bool $resolveArrays = true,

Compiler/ServiceReferenceGraphEdge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
class ServiceReferenceGraphEdge
2222
{
23-
private ServiceReferenceGraphNode $sourceNode;
24-
private ServiceReferenceGraphNode $destNode;
23+
private $sourceNode;
24+
private $destNode;
2525
private mixed $value;
2626
private bool $lazy;
2727
private bool $weak;

0 commit comments

Comments
 (0)