From d750fdb9098ac59b8f38cddaffa3c8b63ffabbf3 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Fri, 16 Feb 2024 08:48:59 -0500 Subject: [PATCH] [make:entity] remove PhpCompatUtil constructor argument --- src/Maker/MakeEntity.php | 10 ---------- src/Resources/config/makers.xml | 1 - 2 files changed, 11 deletions(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index 8b12b4a7f..b131f060a 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -29,7 +29,6 @@ use Symfony\Bundle\MakerBundle\Util\ClassSource\Model\ClassProperty; use Symfony\Bundle\MakerBundle\Util\ClassSourceManipulator; use Symfony\Bundle\MakerBundle\Util\CliOutputHelper; -use Symfony\Bundle\MakerBundle\Util\PhpCompatUtil; use Symfony\Bundle\MakerBundle\Validator; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -48,7 +47,6 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface { private Generator $generator; private EntityClassGenerator $entityClassGenerator; - private PhpCompatUtil $phpCompatUtil; public function __construct( private FileManager $fileManager, @@ -56,7 +54,6 @@ public function __construct( ?string $projectDirectory = null, ?Generator $generator = null, ?EntityClassGenerator $entityClassGenerator = null, - ?PhpCompatUtil $phpCompatUtil = null, ) { if (null !== $projectDirectory) { @trigger_error('The $projectDirectory constructor argument is no longer used since 1.41.0', \E_USER_DEPRECATED); @@ -75,13 +72,6 @@ public function __construct( } else { $this->entityClassGenerator = $entityClassGenerator; } - - if (null === $phpCompatUtil) { - @trigger_error(sprintf('Passing a "%s" instance as 6th argument is mandatory since version 1.41.0', PhpCompatUtil::class), \E_USER_DEPRECATED); - $this->phpCompatUtil = new PhpCompatUtil($this->fileManager); - } else { - $this->phpCompatUtil = $phpCompatUtil; - } } public static function getCommandName(): string diff --git a/src/Resources/config/makers.xml b/src/Resources/config/makers.xml index 8869b91f1..b3eee7745 100644 --- a/src/Resources/config/makers.xml +++ b/src/Resources/config/makers.xml @@ -45,7 +45,6 @@ null -