File tree 3 files changed +5
-7
lines changed
src/Symfony/Component/Console
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 32
32
"symfony/polyfill-ctype" : " ~1.8" ,
33
33
"symfony/polyfill-intl-icu" : " ~1.0" ,
34
34
"symfony/polyfill-mbstring" : " ~1.0" ,
35
- "symfony/polyfill-php72" : " ~1.5"
35
+ "symfony/polyfill-php72" : " ~1.5" ,
36
+ "symfony/polyfill-php73" : " ^1.8.0"
36
37
},
37
38
"replace" : {
38
39
"symfony/asset" : " self.version" ,
Original file line number Diff line number Diff line change @@ -250,11 +250,7 @@ public function setRedrawFrequency(int $freq)
250
250
*/
251
251
public function iterate (iterable $ iterable , ?int $ max = null ): iterable
252
252
{
253
- if (null === $ max ) {
254
- $ max = \is_array ($ iterable ) || $ iterable instanceof \Countable ? \count ($ iterable ) : 0 ;
255
- }
256
-
257
- $ this ->start ($ max );
253
+ $ this ->start ($ max ?? (\is_countable ($ iterable ) ? \count ($ iterable ) : 0 ));
258
254
259
255
foreach ($ iterable as $ key => $ value ) {
260
256
yield $ key => $ value ;
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
20
"symfony/contracts" : " ^1.0" ,
21
- "symfony/polyfill-mbstring" : " ~1.0"
21
+ "symfony/polyfill-mbstring" : " ~1.0" ,
22
+ "symfony/polyfill-php73" : " ^1.8.0"
22
23
},
23
24
"require-dev" : {
24
25
"symfony/config" : " ~3.4|~4.0" ,
You can’t perform that action at this time.
0 commit comments