Skip to content

Commit d3113f2

Browse files
committed
[make:entity] remove PhpCompatUtil constructor argument
1 parent d957430 commit d3113f2

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Maker/MakeEntity.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface
4848
{
4949
private Generator $generator;
5050
private EntityClassGenerator $entityClassGenerator;
51-
private PhpCompatUtil $phpCompatUtil;
5251

5352
public function __construct(
5453
private FileManager $fileManager,
5554
private DoctrineHelper $doctrineHelper,
5655
?string $projectDirectory = null,
5756
?Generator $generator = null,
5857
?EntityClassGenerator $entityClassGenerator = null,
59-
?PhpCompatUtil $phpCompatUtil = null,
6058
) {
6159
if (null !== $projectDirectory) {
6260
@trigger_error('The $projectDirectory constructor argument is no longer used since 1.41.0', \E_USER_DEPRECATED);
@@ -75,13 +73,6 @@ public function __construct(
7573
} else {
7674
$this->entityClassGenerator = $entityClassGenerator;
7775
}
78-
79-
if (null === $phpCompatUtil) {
80-
@trigger_error(sprintf('Passing a "%s" instance as 6th argument is mandatory since version 1.41.0', PhpCompatUtil::class), \E_USER_DEPRECATED);
81-
$this->phpCompatUtil = new PhpCompatUtil($this->fileManager);
82-
} else {
83-
$this->phpCompatUtil = $phpCompatUtil;
84-
}
8576
}
8677

8778
public static function getCommandName(): string

src/Resources/config/makers.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<argument>null</argument>
4646
<argument type="service" id="maker.generator" />
4747
<argument type="service" id="maker.entity_class_generator" />
48-
<argument type="service" id="maker.php_compat_util" />
4948
<tag name="maker.command" />
5049
</service>
5150

0 commit comments

Comments
 (0)