Skip to content

Commit d750fdb

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

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/Maker/MakeEntity.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use Symfony\Bundle\MakerBundle\Util\ClassSource\Model\ClassProperty;
3030
use Symfony\Bundle\MakerBundle\Util\ClassSourceManipulator;
3131
use Symfony\Bundle\MakerBundle\Util\CliOutputHelper;
32-
use Symfony\Bundle\MakerBundle\Util\PhpCompatUtil;
3332
use Symfony\Bundle\MakerBundle\Validator;
3433
use Symfony\Component\Console\Command\Command;
3534
use Symfony\Component\Console\Input\InputArgument;
@@ -48,15 +47,13 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface
4847
{
4948
private Generator $generator;
5049
private EntityClassGenerator $entityClassGenerator;
51-
private PhpCompatUtil $phpCompatUtil;
5250

5351
public function __construct(
5452
private FileManager $fileManager,
5553
private DoctrineHelper $doctrineHelper,
5654
?string $projectDirectory = null,
5755
?Generator $generator = null,
5856
?EntityClassGenerator $entityClassGenerator = null,
59-
?PhpCompatUtil $phpCompatUtil = null,
6057
) {
6158
if (null !== $projectDirectory) {
6259
@trigger_error('The $projectDirectory constructor argument is no longer used since 1.41.0', \E_USER_DEPRECATED);
@@ -75,13 +72,6 @@ public function __construct(
7572
} else {
7673
$this->entityClassGenerator = $entityClassGenerator;
7774
}
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-
}
8575
}
8676

8777
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)