1.2.973. Php 7.1 New Class¶
New classes, introduced in PHP 7.1. If classes where created with the same name, in current code, they have to be moved in a namespace, or removed from code to migrate safely to PHP 7.1.
The new class is : ReflectionClassConstant. The other class is ‘Void’ : this is forbidden as a class name, as Void is used for return type hint.
<?php
class ReflectionClassConstant {
// Move to a namespace, do not leave in global
// or, remove this class
}
?>
1.2.973.1. Connex PHP features¶
1.2.973.1.1. Specs¶
Short name |
Php/Php71NewClasses |
Rulesets |
All, Changed Behavior, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70 |
Exakat since |
0.8.4 |
PHP Version |
With PHP 7.1 and older |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
Very high |
Available in |