File tree 2 files changed +5
-4
lines changed
tests/Fixtures/Integration/misc
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Component \EventDispatcher \EventDispatcher ;
16
16
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
+ // @TODO PHP 7.1
19
+ // @TODO PHP CS Fixer 3.0
18
20
// Since PHP-CS-FIXER is PHP 5.6 compliant we can't always use Symfony Contracts (currently needs PHP ^7.1.3)
19
21
// This conditional inheritance will be useless when PHP-CS-FIXER no longer supports PHP versions
20
22
// inferior to Symfony/Contracts PHP minimal version
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ PHP 7.0 test.
3
3
--RULESET--
4
4
{
5
5
"@Symfony": true,
6
- "ordered_imports": true
6
+ "ordered_imports": true,
7
+ "random_api_migration": true
7
8
}
8
9
--REQUIREMENTS--
9
10
{"php": 70000}
@@ -61,7 +62,6 @@ class Foo implements FooInterface
61
62
echo $a ?? $b;
62
63
63
64
// new random generator
64
- // TODO: on 2.x line add random_api_migration usage
65
65
echo mt_rand(0, 1);
66
66
67
67
// uniform variable syntax
@@ -169,8 +169,7 @@ class Foo implements FooInterface
169
169
echo $a??$b;
170
170
171
171
// new random generator
172
- // TODO: on 2.x line add random_api_migration usage
173
- echo mt_rand(0, 1);
172
+ echo rand(0, 1);
174
173
175
174
// uniform variable syntax
176
175
$a = array('b' => 'c');
You can’t perform that action at this time.
0 commit comments