@@ -94,13 +94,13 @@ public static function provideSingleSubmitData(): iterable
94
94
95
95
yield 'string backed ' => [
96
96
Suit::class,
97
- Suit::Spades->value ,
97
+ ( Suit::Spades) ->value ,
98
98
Suit::Spades,
99
99
];
100
100
101
101
yield 'integer backed ' => [
102
102
Number::class,
103
- (string ) Number::Two->value ,
103
+ (string ) ( Number::Two) ->value ,
104
104
Number::Two,
105
105
];
106
106
}
@@ -134,7 +134,7 @@ public function testSubmitNull($expected = null, $norm = null, $view = null)
134
134
135
135
public function testSubmitNullUsesDefaultEmptyData ($ emptyData = 'empty ' , $ expectedData = null )
136
136
{
137
- $ emptyData = Suit::Hearts->value ;
137
+ $ emptyData = ( Suit::Hearts) ->value ;
138
138
139
139
$ form = $ this ->factory ->create ($ this ->getTestedType (), null , [
140
140
'class ' => Suit::class,
@@ -154,7 +154,7 @@ public function testSubmitMultipleChoiceWithEmptyData()
154
154
'multiple ' => true ,
155
155
'expanded ' => false ,
156
156
'class ' => Suit::class,
157
- 'empty_data ' => [Suit::Diamonds->value ],
157
+ 'empty_data ' => [( Suit::Diamonds) ->value ],
158
158
]);
159
159
160
160
$ form ->submit (null );
@@ -168,7 +168,7 @@ public function testSubmitSingleChoiceExpandedWithEmptyData()
168
168
'multiple ' => false ,
169
169
'expanded ' => true ,
170
170
'class ' => Suit::class,
171
- 'empty_data ' => Suit::Hearts->value ,
171
+ 'empty_data ' => ( Suit::Hearts) ->value ,
172
172
]);
173
173
174
174
$ form ->submit (null );
@@ -182,7 +182,7 @@ public function testSubmitMultipleChoiceExpandedWithEmptyData()
182
182
'multiple ' => true ,
183
183
'expanded ' => true ,
184
184
'class ' => Suit::class,
185
- 'empty_data ' => [Suit::Spades->value ],
185
+ 'empty_data ' => [( Suit::Spades) ->value ],
186
186
]);
187
187
188
188
$ form ->submit (null );
@@ -236,13 +236,13 @@ public static function provideMultiSubmitData(): iterable
236
236
237
237
yield 'string backed ' => [
238
238
Suit::class,
239
- [Suit::Hearts->value , Suit::Spades->value ],
239
+ [( Suit::Hearts) ->value , ( Suit::Spades) ->value ],
240
240
[Suit::Hearts, Suit::Spades],
241
241
];
242
242
243
243
yield 'integer backed ' => [
244
244
Number::class,
245
- [(string ) Number::Two->value , (string ) Number::Three->value ],
245
+ [(string ) ( Number::Two) ->value , (string ) ( Number::Three) ->value ],
246
246
[Number::Two, Number::Three],
247
247
];
248
248
}
0 commit comments