@@ -91,13 +91,13 @@ public function provideSingleSubmitData(): iterable
91
91
92
92
yield 'string backed ' => [
93
93
Suit::class,
94
- ( Suit::Spades) ->value ,
94
+ Suit::Spades->value ,
95
95
Suit::Spades,
96
96
];
97
97
98
98
yield 'integer backed ' => [
99
99
Number::class,
100
- (string ) ( Number::Two) ->value ,
100
+ (string ) Number::Two->value ,
101
101
Number::Two,
102
102
];
103
103
}
@@ -131,7 +131,7 @@ public function testSubmitNull($expected = null, $norm = null, $view = null)
131
131
132
132
public function testSubmitNullUsesDefaultEmptyData ($ emptyData = 'empty ' , $ expectedData = null )
133
133
{
134
- $ emptyData = ( Suit::Hearts) ->value ;
134
+ $ emptyData = Suit::Hearts->value ;
135
135
136
136
$ form = $ this ->factory ->create ($ this ->getTestedType (), null , [
137
137
'class ' => Suit::class,
@@ -151,7 +151,7 @@ public function testSubmitMultipleChoiceWithEmptyData()
151
151
'multiple ' => true ,
152
152
'expanded ' => false ,
153
153
'class ' => Suit::class,
154
- 'empty_data ' => [( Suit::Diamonds) ->value ],
154
+ 'empty_data ' => [Suit::Diamonds->value ],
155
155
]);
156
156
157
157
$ form ->submit (null );
@@ -165,7 +165,7 @@ public function testSubmitSingleChoiceExpandedWithEmptyData()
165
165
'multiple ' => false ,
166
166
'expanded ' => true ,
167
167
'class ' => Suit::class,
168
- 'empty_data ' => ( Suit::Hearts) ->value ,
168
+ 'empty_data ' => Suit::Hearts->value ,
169
169
]);
170
170
171
171
$ form ->submit (null );
@@ -179,7 +179,7 @@ public function testSubmitMultipleChoiceExpandedWithEmptyData()
179
179
'multiple ' => true ,
180
180
'expanded ' => true ,
181
181
'class ' => Suit::class,
182
- 'empty_data ' => [( Suit::Spades) ->value ],
182
+ 'empty_data ' => [Suit::Spades->value ],
183
183
]);
184
184
185
185
$ form ->submit (null );
@@ -233,13 +233,13 @@ public function provideMultiSubmitData(): iterable
233
233
234
234
yield 'string backed ' => [
235
235
Suit::class,
236
- [( Suit::Hearts) ->value , ( Suit::Spades) ->value ],
236
+ [Suit::Hearts->value , Suit::Spades->value ],
237
237
[Suit::Hearts, Suit::Spades],
238
238
];
239
239
240
240
yield 'integer backed ' => [
241
241
Number::class,
242
- [(string ) ( Number::Two) ->value , (string ) ( Number::Three) ->value ],
242
+ [(string ) Number::Two->value , (string ) Number::Three->value ],
243
243
[Number::Two, Number::Three],
244
244
];
245
245
}
0 commit comments