8000 Merge branch '4.1' · symfony/symfony-docs@fb3b7bd · GitHub
[go: up one dir, main page]

Skip to content

Commit fb3b7bd

Browse files
committed
Merge branch '4.1'
* 4.1: [Serializer] Allow to specify a single value in @groups [Validator] fix condition in if statement Fix broken link to Security tutorial PhpUnitBridge: Fix typo in note
2 parents 8a88478 + 87737b1 commit fb3b7bd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

components/phpunit_bridge.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ There are three ways to mark a test as legacy:
152152
.. note::
153153

154154
If your data provider calls code that would usually trigger a deprecation,
155-
you can prefix its name with ``provideLegacy`` or ``getLegacy`` to silent
155+
you can prefix its name with ``provideLegacy`` or ``getLegacy`` to silence
156156
these deprecations. If your data provider does not execute deprecated
157157
code, it is not required to choose a special naming just because the
158158
test being fed by the data provider is marked as legacy.

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Then, create your groups definition:
286286
public $foo;
287287
288288
/**
289-
* @Groups({"group3"})
289+
* @Groups("group3")
290290
*/
291291
public function getBar() // is* methods are also supported
292292
{

components/validator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ If you have lots of validation errors, you can filter them by error code::
6060
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
6161

6262
$violations = $validator->validate(...);
63-
if (count($violations->findByCodes(UniqueEntity::NOT_UNIQUE_ERROR))) {
63+
if (0 !== count($violations->findByCodes(UniqueEntity::NOT_UNIQUE_ERROR))) {
6464
// handle this specific error (display some message, send an email, etc.)
6565
}
6666

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,4 +1348,4 @@ Other Security Related Topics
13481348
.. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
13491349
.. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle
13501350
.. _`Symfony ACL bundle`: https://github.com/symfony/acl-bundle
1351-
.. _`Symfony Security screencast series`: https://knpuniversity.com/screencast/symfony4-security
1351+
.. _`Symfony Security screencast series`: https://knpuniversity.com/screencast/symfony-security

0 commit comments

Comments
 (0)
0