Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7b7b58

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Validator] Add warning about closure not being cachable
2 parents 0d79c5c + f57055d commit c7b7b58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/constraints/Callback.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ constructor of the Callback constraint::
281281
}
282282
}
283283

284+
.. warning::
285+
286+
Using a ``Closure`` together with annotation configuration will disable the
287+
annotation cache for that class/property/method because ``Closure`` cannot
288+
be cached. For best performance, it's recommended to use a static callback method.
289+
284290
Options
285291
-------
286292

0 commit comments

Comments
 (0)