Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd33f73b

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 parentsbdaba7a +2cecb41 commitd33f73b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

‎form/data_transformers.rst‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 3 additions & 5 deletions
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‎

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp