Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #24 from recipe/master

instanceof
  • Loading branch information...
commit 138b8b377888c2c46a67869ec8173a040aaecf7f 2 parents 4831a8e + 2d7a034
Vitaliy Demidov recipe authored
Showing with 6 additions and 4 deletions.
  1. +1 −1  EventListener/ValidationGroupsListener.php
  2. +5 −3 README.md
2  EventListener/ValidationGroupsListener.php
View
@@ -20,7 +20,7 @@ public function onJsfvPreProcess(PreProcessEvent $event)
$formView = $event->getFormView();
$formValidationGroups = !empty($formView->vars['validation_groups']) ?
$formView->vars['validation_groups'] : array('Default');
- if (is_object($formValidationGroups) && is_a($formValidationGroups, 'Closure')) {
+ if ($formValidationGroups instanceof \Closure) {
// !TODO It couldn't be processed in current implementation.
// No one constraint will be excluded in this case.
return;
8 README.md
View
@@ -1,5 +1,9 @@
-Getting Started With JsFormValidationBundle [![Build Status](https://secure.travis-ci.org/Abhoryo/APYJsFormValidationBundle.png?branch=master)](http://travis-ci.org/Abhoryo/APYJsFormValidationBundle)
+Getting Started With JsFormValidationBundle
===========================================
+**Version**: 2.1
+[![Build Status](https://secure.travis-ci.org/Abhoryo/APYJsFormValidationBundle.png?branch=master)](http://travis-ci.org/Abhoryo/APYJsFormValidationBundle)
+
+**Compatibility**: Symfony 2.1+
This bundle generate automatically a script to perform validations of a form in javascript.
@@ -7,8 +11,6 @@ It use the same constraints defined with annotations in your entity or your docu
This bundle is `g11n` compatible.(i18n + L10n)
-**Version**: 2.1
-**Compatibility**: Symfony 2.1+
## Prerequisite
Please sign in to comment.
Something went wrong with that request. Please try again.