Skip to content

Commit c0b5323

Browse files
committed
minor symfony#17620 [Form] inline the constructor (tacman)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Form] inline the constructor <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- e435d2c inline the constructor
2 parents a6f75ec + e435d2c commit c0b5323

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

form/data_transformers.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,8 @@ to and from the issue number and the ``Issue`` object::
177177

178178
class IssueToNumberTransformer implements DataTransformerInterface
179179
{
180-
private $entityManager;
181-
182-
public function __construct(EntityManagerInterface $entityManager)
180+
public function __construct(private EntityManagerInterface $entityManager)
183181
{
184-
$this->entityManager = $entityManager;
185182
}
186183

187184
/**

0 commit comments

Comments
 (0)