Skip to content

Commit 6ea2f41

Browse files
committed
Removed redundant phpDocs + formRenderer is optional in ValidatorExtension constructor
1 parent 1a87a47 commit 6ea2f41

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,11 @@
2626
*/
2727
class ValidatorExtension extends AbstractExtension
2828
{
29-
/**
30-
* @var ValidatorInterface
31-
*/
3229
private $validator;
33-
34-
/**
35-
* @var FormRendererInterface
36-
*/
3730
private $formRenderer;
38-
39-
/**
40-
* @var TranslatorInterface
41-
*/
4231
private $translator;
4332

44-
public function __construct(ValidatorInterface $validator, FormRendererInterface $formRenderer, TranslatorInterface $translator = null)
33+
public function __construct(ValidatorInterface $validator, FormRendererInterface $formRenderer = null, TranslatorInterface $translator = null)
4534
{
4635
$metadata = $validator->getMetadataFor('Symfony\Component\Form\Form');
4736

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