Skip to content

Commit 5882680

Browse files
CS fixes
1 parent 8be3af5 commit 5882680

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/Extension/Core/Type/EnumTypeTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ public function provideSingleSubmitData(): iterable
9191

9292
yield 'string backed' => [
9393
Suit::class,
94-
(Suit::Spades)->value,
94+
Suit::Spades->value,
9595
Suit::Spades,
9696
];
9797

9898
yield 'integer backed' => [
9999
Number::class,
100-
(string) (Number::Two)->value,
100+
(string) Number::Two->value,
101101
Number::Two,
102102
];
103103
}
@@ -131,7 +131,7 @@ public function testSubmitNull($expected = null, $norm = null, $view = null)
131131

132132
public function testSubmitNullUsesDefaultEmptyData($emptyData = 'empty', $expectedData = null)
133133
{
134-
$emptyData = (Suit::Hearts)->value;
134+
$emptyData = Suit::Hearts->value;
135135

136136
$form = $this->factory->create($this->getTestedType(), null, [
137137
'class' => Suit::class,
@@ -151,7 +151,7 @@ public function testSubmitMultipleChoiceWithEmptyData()
151151
'multiple' => true,
152152
'expanded' => false,
153153
'class' => Suit::class,
154-
'empty_data' => [(Suit::Diamonds)->value],
154+
'empty_data' => [Suit::Diamonds->value],
155155
]);
156156

157157
$form->submit(null);
@@ -165,7 +165,7 @@ public function testSubmitSingleChoiceExpandedWithEmptyData()
165165
'multiple' => false,
166166
'expanded' => true,
167167
'class' => Suit::class,
168-
'empty_data' => (Suit::Hearts)->value,
168+
'empty_data' => Suit::Hearts->value,
169169
]);
170170

171171
$form->submit(null);
@@ -179,7 +179,7 @@ public function testSubmitMultipleChoiceExpandedWithEmptyData()
179179
'multiple' => true,
180180
'expanded' => true,
181181
'class' => Suit::class,
182-
'empty_data' => [(Suit::Spades)->value],
182+
'empty_data' => [Suit::Spades->value],
183183
]);
184184

185185
$form->submit(null);
@@ -233,13 +233,13 @@ public function provideMultiSubmitData(): iterable
233233

234234
yield 'string backed' => [
235235
Suit::class,
236-
[(Suit::Hearts)->value, (Suit::Spades)->value],
236+
[Suit::Hearts->value, Suit::Spades->value],
237237
[Suit::Hearts, Suit::Spades],
238238
];
239239

240240
yield 'integer backed' => [
241241
Number::class,
242-
[(string) (Number::Two)->value, (string) (Number::Three)->value],
242+
[(string) Number::Two->value, (string) Number::Three->value],
243243
[Number::Two, Number::Three],
244244
];
245245
}

0 commit comments

Comments
 (0)