Skip to content

Commit

Permalink
fix markdown for code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaugustin committed May 25, 2012
1 parent 023dbf8 commit 09e5f46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADE-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 09e5f46

Please sign in to comment.