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

Appearance settings

Commit 87737b1

Browse filesBrowse 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 parents dc44144 + d19266a commit 87737b1
Copy full SHA for 87737b1

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎components/phpunit_bridge.rst

Copy file name to clipboardExpand all lines: components/phpunit_bridge.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: components/serializer.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: components/validator.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.