Skip to content

Commit 52aaa56

Browse files
committed
Remove FQCN type hints on properties
1 parent dab63e6 commit 52aaa56

File tree

675 files changed

+1066
-1107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

675 files changed

+1066
-1107
lines changed

src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class ProxyCacheWarmer implements CacheWarmerInterface
2626
{
27-
private ManagerRegistry $registry;
27+
private $registry;
2828

2929
public function __construct(ManagerRegistry $registry)
3030
{

src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ContainerAwareEventManager extends EventManager
3333
private array $initialized = [];
3434
private bool $initializedSubscribers = false;
3535
private array $methods = [];
36-
private ContainerInterface $container;
36+
private $container;
3737

3838
/**
3939
* @param list<string|EventSubscriber|array{string[], string|object}> $subscriberIds List of subscribers, subscriber ids, or [events, listener] tuples

src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
class DoctrineDataCollector extends DataCollector
3030
{
31-
private ManagerRegistry $registry;
31+
private $registry;
3232
private array $connections;
3333
private array $managers;
3434

src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class ContainerAwareLoader extends Loader
2727
{
28-
private ContainerInterface $container;
28+
private $container;
2929

3030
public function __construct(ContainerInterface $container)
3131
{

src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
*/
2323
class DoctrineChoiceLoader extends AbstractChoiceLoader
2424
{
25-
private ObjectManager $manager;
25+
private $manager;
2626
private string $class;
27-
private ?IdReader $idReader;
28-
private ?EntityLoaderInterface $objectLoader;
27+
private $idReader;
28+
private $objectLoader;
2929

3030
/**
3131
* Creates a new choice loader.

src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
*/
2525
class IdReader
2626
{
27-
private ObjectManager $om;
28-
private ClassMetadata $classMetadata;
27+
private $om;
28+
private $classMetadata;
2929
private bool $singleId;
3030
private bool $intId;
3131
private string $idField;

src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
3131
*
3232
* This property should only be accessed through queryBuilder.
3333
*/
34-
private QueryBuilder $queryBuilder;
34+
private $queryBuilder;
3535

3636
public function __construct(QueryBuilder $queryBuilder)
3737
{

src/Symfony/Bridge/Doctrine/IdGenerator/UlidGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
final class UlidGenerator extends AbstractIdGenerator
2020
{
21-
private ?UlidFactory $factory;
21+
private $factory;
2222

2323
public function __construct(UlidFactory $factory = null)
2424
{

src/Symfony/Bridge/Doctrine/IdGenerator/UuidGenerator.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@
1313

1414
use Doctrine\ORM\EntityManager;
1515
use Doctrine\ORM\Id\AbstractIdGenerator;
16-
use Symfony\Component\Uid\Factory\NameBasedUuidFactory;
17-
use Symfony\Component\Uid\Factory\RandomBasedUuidFactory;
18-
use Symfony\Component\Uid\Factory\TimeBasedUuidFactory;
1916
use Symfony\Component\Uid\Factory\UuidFactory;
2017
use Symfony\Component\Uid\Uuid;
2118

2219
final class UuidGenerator extends AbstractIdGenerator
2320
{
24-
private UuidFactory $protoFactory;
25-
private UuidFactory|NameBasedUuidFactory|RandomBasedUuidFactory|TimeBasedUuidFactory $factory;
21+
private $protoFactory;
22+
private $factory;
2623
private ?string $entityGetter = null;
2724

2825
public function __construct(UuidFactory $factory = null)

src/Symfony/Bridge/Doctrine/Messenger/DoctrineClearEntityManagerWorkerSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class DoctrineClearEntityManagerWorkerSubscriber implements EventSubscriberInterface
2525
{
26-
private ManagerRegistry $managerRegistry;
26+
private $managerRegistry;
2727

2828
public function __construct(ManagerRegistry $managerRegistry)
2929
{

0 commit comments

Comments
 (0)