| Subject |
Details |
| PHP version |
7.2.15 |
| Full Command |
rector process src --level php70 |
Current Behaviour
It is replacing all ocurrences of mktime() to time() function
- $date = mktime(1, 2, 3);
+ $date = time(1, 2, 3);
Expected Behaviour
It should replace only when there is no parameters set to mktime()
$date = mktime(1, 2, 3);
$date = mktime(1, 2, 3);
- $now = mktime();
+ $now = time();
Current Behaviour
It is replacing all ocurrences of
mktime()totime()functionExpected Behaviour
It should replace only when there is no parameters set to
mktime()