Skip to content

Commit 6217562

Browse files
committed
Removed redundant phpDocs + formRenderer is optional in ValidatorExtension constructor
1 parent e107798 commit 6217562

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ValidatorExtension extends AbstractExtension
3131
private $translator;
3232
private $legacyErrorMessages;
3333

34-
public function __construct(ValidatorInterface $validator, FormRendererInterface $formRenderer, TranslatorInterface $translator = null, bool $legacyErrorMessages = true)
34+
public function __construct(ValidatorInterface $validator, FormRendererInterface $formRenderer = null, TranslatorInterface $translator = null, bool $legacyErrorMessages = true)
3535
{
3636
$this->legacyErrorMessages = $legacyErrorMessages;
3737

src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@
2626
*/
2727
class ViolationMapper implements ViolationMapperInterface
2828
{
29-
/**
30-
* @var FormRendererInterface
31-
*/
3229
private $formRenderer;
33-
34-
/**
35-
* @var TranslatorInterface
36-
*/
3730
private $translator;
3831

3932
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy