lint/php-7.0
Upgrade to PHP 7.0: code a newer PHP removes, deprecates or does better.
no-call-user-method
Changes call_user_method()/call_user_method_array() to call_user_func()/call_user_func_array()
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
no-list-from-string
list() cannot split string directly anymore, use str_split()
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-braced-variable-variable
Ensure variable variables are wrapped in curly braces
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-coalesce-return
Change if with isset and return to coalesce
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-random-int
Changes rand, srand, and getrandmax to newer alternatives
In the lint-strict preset. In Rector’s rector/php70 set. Unsafe fix: it can change behavior. Runs only when [php] version is 7.0 or later.
prefer-spaceship
Use <=> spaceship instead of ternary with same effect
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-spaceship-return
Changes if/else to spaceship <=> where useful
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-static-method-call
Changes $this->call() to static method to static call
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.
prefer-throwable-handler
Change typehint from Exception to Throwable
In the lint-strict preset. In Rector’s rector/php70 set. Unsafe fix: it can change behavior. Runs only when [php] version is 7.0 or later.
prefer-time
Renames mktime() without arguments to time()
In the lint-recommended preset and every stricter one. In Rector’s rector/php70 set. Safe fix. Runs only when [php] version is 7.0 or later.