updated CHANGELOG for 2.1

This commit is contained in:
Fabien Potencier 2011-11-01 15:30:43 +01:00
parent 67bb80f526
commit 04a1deace0
2 changed files with 7 additions and 2 deletions

View File

@ -49,6 +49,10 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
* added a timeline panel
* The toolbar position can now be configured via the `position` option (can be `top` or `bottom`)
### Config
* implemented `Serializable` on resources
### Console
* made the defaults (helper set, commands, input definition) in Application more easily customizable
@ -109,6 +113,7 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
### Validator
* added support for `ctype_*` assertions in `TypeValidator`
* added a Size validator
* added a SizeLength validator
* improved the ImageValidator with min width, max width, min height, and max height constraints

View File

@ -42,9 +42,9 @@ class TypeValidator extends ConstraintValidator
if (function_exists($isFunction) && call_user_func($isFunction, $value)) {
return true;
} else if (function_exists($ctypeFunction) && call_user_func($ctypeFunction, $value)) {
} elseif (function_exists($ctypeFunction) && call_user_func($ctypeFunction, $value)) {
return true;
} else if ($value instanceof $constraint->type) {
} elseif ($value instanceof $constraint->type) {
return true;
}