minor #30305 [Form] Fix describing closures (chalasr)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[Form] Fix describing closures

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Fixes Form' TextDescriptorTest broken after #30295

Commits
-------

005e75cbab [Form] Fix describing closures
This commit is contained in:
Nicolas Grekas 2019-02-19 16:47:43 +01:00
commit 87a223b333
4 changed files with 0 additions and 5 deletions

View File

@ -188,7 +188,6 @@ class TextDescriptor extends Descriptor
$prefix = Caster::PREFIX_VIRTUAL;
return [
$prefix.'parameters' => isset($a[$prefix.'parameters']) ? \count($a[$prefix.'parameters']->value) : 0,
$prefix.'file' => $a[$prefix.'file'],
$prefix.'line' => $a[$prefix.'line'],
];

View File

@ -16,7 +16,6 @@ Symfony\Component\Form\Extension\Core\Type\ChoiceType (choice_translation_domain
Allowed values - %s
---------------- --------------------%s
Normalizer Closure%s{%w
parameters: 2 %s
file: "%s%eExtension%eCore%eType%eChoiceType.php"%w
line: "%s to %s" %s
} %s

View File

@ -9,12 +9,10 @@ Symfony\Component\Form\Tests\Console\Descriptor\FooType (empty_data)
%s
Closure(s): [ %s
Closure%s{%w
parameters: 1 %s
file: "%s%eExtension%eCore%eType%eFormType.php"%w
line: "%s to %s" %s
}, %s
Closure%s{%w
parameters: 2 %s
file: "%s%eTests%eConsole%eDescriptor%eAbstractDescriptorTest.php"%w
line: "%s to %s" %s
} %s

View File

@ -17,7 +17,6 @@ Symfony\Component\Form\Tests\Console\Descriptor\FooType (foo)
] %s
---------------- --------------------%s
Normalizer Closure%s{%w
parameters: 2 %s
file: "%s%eTests%eConsole%eDescriptor%eAbstractDescriptorTest.php"%w
line: "%s to %s" %s
} %s