Skip to content

Commit d33f73b

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Update data_transformers.rst Fixed the \"learn more\" section of Testing article Change gender to eye-color
2 parents bdaba7a + 2cecb41 commit d33f73b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

form/data_transformers.rst

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ First, create the custom field type class::
344344
use App\Form\DataTransformer\IssueToNumberTransformer;
345345
use Doctrine\Common\Persistence\ObjectManager;
346346
use Symfony\Component\Form\AbstractType;
347+
use Symfony\Component\Form\Extension\Core\Type\TextType;
347348
use Symfony\Component\Form\FormBuilderInterface;
348349
use Symfony\Component\OptionsResolver\OptionsResolver;
349350

testing.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -1049,11 +1049,9 @@ Learn more
10491049
:glob:
10501050

10511051
testing/*
1052-
1053-
* :ref:`Testing a console command <console-testing-commands>`
1054-
* :doc:`The chapter about tests in the Symfony Framework Best Practices </best_practices/tests>`
1055-
* :doc:`/components/dom_crawler`
1056-
* :doc:`/components/css_selector`
1052+
/best_practices/tests
1053+
/components/dom_crawler
1054+
/components/css_selector
10571055

10581056
.. _`PHPUnit`: https://phpunit.de/
10591057
.. _`documentation`: https://phpunit.readthedocs.io/

validation/raw_values.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Validation of arrays is possible using the ``Collection`` constraint::
5858
],
5959
'email' => 'test@email.tld',
6060
'simple' => 'hello',
61-
'gender' => 3,
61+
'eye_color' => 3,
6262
'file' => null,
6363
'password' => 'test',
6464
'tags' => [
@@ -79,7 +79,7 @@ Validation of arrays is possible using the ``Collection`` constraint::
7979
]),
8080
'email' => new Assert\Email(),
8181
'simple' => new Assert\Length(['min' => 102]),
82-
'gender' => new Assert\Choice([3, 4]),
82+
'eye_color' => new Assert\Choice([3, 4]),
8383
'file' => new Assert\File(),
8484
'password' => new Assert\Length(['min' => 60]),
8585
'tags' => new Assert\Optional([

0 commit comments

Comments
 (0)