From 4f459f90b5d87de4ba4def9719232d607afad199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20B=C5=82oszyk?= Date: Sat, 23 May 2020 03:35:02 +0200 Subject: [PATCH] Fix --- tests/Type/DateRangePickerTypeTest.php | 4 +++- tests/Type/DateRangeTypeTest.php | 4 +++- tests/Type/DateTimeRangePickerTypeTest.php | 4 +++- tests/Type/EqualTypeTest.php | 7 ++++--- tests/Validator/Constraints/InlineConstraintTest.php | 6 ++++-- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/tests/Type/DateRangePickerTypeTest.php b/tests/Type/DateRangePickerTypeTest.php index 4b13e8d5..48ba0236 100644 --- a/tests/Type/DateRangePickerTypeTest.php +++ b/tests/Type/DateRangePickerTypeTest.php @@ -71,6 +71,8 @@ public function testGetDefaultOptions() 'dp_use_current' => false, ], 'field_type' => DatePickerType::class, - ], $options); + ], + $options + ); } } diff --git a/tests/Type/DateRangeTypeTest.php b/tests/Type/DateRangeTypeTest.php index b73d7de4..4ea14ff5 100644 --- a/tests/Type/DateRangeTypeTest.php +++ b/tests/Type/DateRangeTypeTest.php @@ -69,6 +69,8 @@ public function testGetDefaultOptions() 'field_options_start' => [], 'field_options_end' => [], 'field_type' => DateType::class, - ], $options); + ], + $options + ); } } diff --git a/tests/Type/DateTimeRangePickerTypeTest.php b/tests/Type/DateTimeRangePickerTypeTest.php index f45d0b23..45ae9c44 100644 --- a/tests/Type/DateTimeRangePickerTypeTest.php +++ b/tests/Type/DateTimeRangePickerTypeTest.php @@ -71,6 +71,8 @@ public function testGetDefaultOptions() 'dp_use_current' => false, ], 'field_type' => DateTimePickerType::class, - ], $options); + ], + $options + ); } } diff --git a/tests/Type/EqualTypeTest.php b/tests/Type/EqualTypeTest.php index 021a7afb..5112e0b9 100644 --- a/tests/Type/EqualTypeTest.php +++ b/tests/Type/EqualTypeTest.php @@ -57,9 +57,10 @@ public function testGetDefaultOptions() $mock->expects($this->exactly(0)) ->method('trans') - ->willReturnCallback(static function ($arg) { - return $arg; - } + ->willReturnCallback( + static function ($arg) { + return $arg; + } ); $type = new EqualType($mock); diff --git a/tests/Validator/Constraints/InlineConstraintTest.php b/tests/Validator/Constraints/InlineConstraintTest.php index 3e646c93..9d5a7dd9 100644 --- a/tests/Validator/Constraints/InlineConstraintTest.php +++ b/tests/Validator/Constraints/InlineConstraintTest.php @@ -108,7 +108,8 @@ public function testSerializingWarningIsFalseWithServiceIsNotString() $this->expectExceptionMessage( 'You are using a closure with the `InlineConstraint`, this constraint'. ' cannot be serialized. You need to re-attach the `InlineConstraint` on each request.'. - ' Once done, you can set the `serializingWarning` option to `true` to avoid this message.'); + ' Once done, you can set the `serializingWarning` option to `true` to avoid this message.' + ); new InlineConstraint(['service' => 1, 'method' => 'foo', 'serializingWarning' => false]); } @@ -121,7 +122,8 @@ public function testSerializingWarningIsFalseWithMethodIsNotString() $this->expectExceptionMessage( 'You are using a closure with the `InlineConstraint`, this constraint'. ' cannot be serialized. You need to re-attach the `InlineConstraint` on each request.'. - ' Once done, you can set the `serializingWarning` option to `true` to avoid this message.'); + ' Once done, you can set the `serializingWarning` option to `true` to avoid this message.' + ); new InlineConstraint(['service' => 'foo', 'method' => 1, 'serializingWarning' => false]); }