Development

#5056 ([PATCH] PHP warning when running acceptance tests on validatable forms)

You must first sign up to be able to contribute.

Ticket #5056 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

[PATCH] PHP warning when running acceptance tests on validatable forms

Reported by: endor Assigned to: fabien
Priority: minor Milestone:
Component: other Version:
Keywords: Cc:
Qualification: Unreviewed

Description

I see the following error when running an acceptance test with lime on a validatable form and fill in data that makes the validation fail:

PHP send a "warning" error at symfony/lib/widget/sfWidgetFormSelectCheckbox.class.php line 107 (in_array(): Wrong datatype for second argument)Exception: 182

A solution seems to be a simple test in the line 107 of sfWidgetFormSelectCheckbox.class.php if $value is actually an array:

if (is_array($value)) {

if (in_array(strval($key), $value)) ...

I don't know if this is the way it's supposed to work or I missed some configuration for the test or the validation.

Change History

11/24/08 23:53:59 changed by FabianLange

  • status changed from new to closed.
  • resolution set to fixed.

(In [13324]) [1.2] fixed possible notice in sfWidgetFormSelectCheckbox by applying pattern from sfWidgetFormSelect. fixes #5056

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.