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 34d0690

Browse filesBrowse files
committed
minor #7046 Fix incorrect callback validation example (mvar)
This PR was merged into the 2.7 branch. Discussion ---------- Fix incorrect callback validation example Current example in documentation leads into an exception: > Uncaught PHP Exception Symfony\Component\Validator\Exception\ConstraintDefinitionException: "["validate"] targeted by Callback constraint is not a valid callable" Commits ------- 9674500 Fix incorrect callback validation example
2 parents 108b849 + 9674500 commit 34d0690
Copy full SHA for 34d0690

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎reference/constraints/Callback.rst

Copy file name to clipboardExpand all lines: reference/constraints/Callback.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Configuration
5959
# src/AppBundle/Resources/config/validation.yml
6060
AppBundle\Entity\Author:
6161
constraints:
62-
- Callback: [validate]
62+
- Callback: validate
6363
6464
.. code-block:: xml
6565

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.