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

Commit87737b1

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: [Serializer] Allow to specify a single value in@groups [Validator] fix condition in if statement PhpUnitBridge: Fix typo in note
2 parentsdc44144 +d19266a commit87737b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp