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

Commitfb3b7bd

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 parents8a88478 +87737b1 commitfb3b7bd

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`` tosilent
155+
you can prefix its name with ``provideLegacy`` or ``getLegacy`` tosilence
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)

[8]ページ先頭

©2009-2025 Movatter.jp