Skip to content

Commit d12c3f7

Browse files
Merge branch '4.4'
* 4.4: [Bridge/PhpUnit] fix looking for composer cs fix [Mailer] fixed Mailgun support when a response is not JSON as expected [4.3] Cleanup tests Cleanup tests [Finder] Prevent unintentional file locks in Windows [FrameworkBundle] Fix about command not showing .env vars [DomCrawler] Fix FileFormField PHPDoc [Mailer] Remove the default dispatcher in AbstractTransport Fix #33395 PHP 5.3 compatibility
2 parents 230b254 + 89e68a3 commit d12c3f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Field/ChoiceFormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function untick()
113113
/**
114114
* Sets the value of the field.
115115
*
116-
* @param string|array $value The value of the field
116+
* @param string|array|bool|null $value The value of the field
117117
*
118118
* @throws \InvalidArgumentException When value type provided is not correct
119119
*/

Field/FormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getValue()
101101
*/
102102
public function setValue(?string $value)
103103
{
104-
$this->value = (string) $value;
104+
$this->value = $value ?? '';
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)