Skip to content

Commit 2ebb7a8

Browse files
ISSUE-104: PHP 5.4 improvements
1 parent ca9d811 commit 2ebb7a8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/BooleanType.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5454
*/
5555
public function configureOptions(OptionsResolver $resolver)
5656
{
57-
$self = $this;
58-
59-
$labelTrueNormalizer = function (Options $options, $value) use ($self) {
60-
return !is_null($value) ? (string) $value : $self->humanize($options['value_true']);
57+
$labelTrueNormalizer = function (Options $options, $value) {
58+
return !is_null($value) ? (string) $value : $this->humanize($options['value_true']);
6159
};
6260

63-
$labelFalseNormalizer = function (Options $options, $value) use ($self) {
64-
return !is_null($value) ? (string) $value : $self->humanize($options['value_false']);
61+
$labelFalseNormalizer = function (Options $options, $value) {
62+
return !is_null($value) ? (string) $value : $this->humanize($options['value_false']);
6563
};
6664

6765
$choicesNormalizer = function (Options $options) {

0 commit comments

Comments
 (0)