Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

instanceof #24

Merged
merged 1 commit into from

1 participant

@recipe
Collaborator

No description provided.

@recipe recipe merged commit 138b8b3 into Abhoryo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 31, 2012
  1. @recipe

    instanceof

    recipe authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +1 −1  EventListener/ValidationGroupsListener.php
  2. +5 −3 README.md
View
2  EventListener/ValidationGroupsListener.php
@@ -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;
View
8 README.md
@@ -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
Something went wrong with that request. Please try again.