From 09e5f4629d0df97bfc843f4da2dddb9a74f88db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Augustin?= Date: Fri, 25 May 2012 15:14:30 +0300 Subject: [PATCH] fix markdown for code --- UPGRADE-2.1.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 39813e9c47..026d014cf9 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -696,21 +696,25 @@ Before: + ``` public function guessMinLength($class, $property) { if (/* condition */) { return new ValueGuess($minLength, Guess::LOW_CONFIDENCE); } } + ``` After: + ``` public function guessPattern($class, $property) { if (/* condition */) { return new ValueGuess('.{' . $minLength . ',}', Guess::LOW_CONFIDENCE); } } + ``` * Setting the option "property_path" to `false` was deprecated and will be unsupported as of Symfony 2.3.