projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Porter Stemmer module to improve searches. This doesn't deal with some...
[yaffs-website]
/
vendor
/
symfony
/
dom-crawler
/
Field
/
ChoiceFormField.php
diff --git
a/vendor/symfony/dom-crawler/Field/ChoiceFormField.php
b/vendor/symfony/dom-crawler/Field/ChoiceFormField.php
index a3539bc1b421ee216974de96bd902e2100150ba0..6f112b535007971bca78a8b1304832c22d008216 100644
(file)
--- a/
vendor/symfony/dom-crawler/Field/ChoiceFormField.php
+++ b/
vendor/symfony/dom-crawler/Field/ChoiceFormField.php
@@
-45,7
+45,7
@@
class ChoiceFormField extends FormField
public function hasValue()
{
// don't send a value for unchecked checkboxes
public function hasValue()
{
// don't send a value for unchecked checkboxes
- if (in_array($this->type, array('checkbox', 'radio')) && null === $this->value) {
+ if (
\
in_array($this->type, array('checkbox', 'radio')) && null === $this->value) {
return false;
}
return false;
}
@@
-75,7
+75,7
@@
class ChoiceFormField extends FormField
/**
* Sets the value of the field.
*
/**
* Sets the value of the field.
*
- * @param string $value The value of the field
+ * @param string
|array
$value The value of the field
*/
public function select($value)
{
*/
public function select($value)
{
@@
-126,7
+126,7
@@
class ChoiceFormField extends FormField
// check
$this->value = $this->options[0]['value'];
} else {
// check
$this->value = $this->options[0]['value'];
} else {
- if (is_array($value)) {
+ if (
\
is_array($value)) {
if (!$this->multiple) {
throw new \InvalidArgumentException(sprintf('The value for "%s" cannot be an array.', $this->name));
}
if (!$this->multiple) {
throw new \InvalidArgumentException(sprintf('The value for "%s" cannot be an array.', $this->name));
}
@@
-144,7
+144,7
@@
class ChoiceFormField extends FormField
$value = (array) $value;
}
$value = (array) $value;
}
- if (is_array($value)) {
+ if (
\
is_array($value)) {
$this->value = $value;
} else {
parent::setValue($value);
$this->value = $value;
} else {
parent::setValue($value);