1.2.975. Php 7.2 New Class¶
New classes, introduced in PHP 7.2. 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.2.
The new class is : HashContext.
<?php
namespace {
// Global namespace
class HashContext {
// Move to a namespace
// or, remove this class
}
}
namespace B {
class HashContext {
// This is OK : in a namespace
}
}
?>
See also New Classes and Interfaces.
1.2.975.1. Connex PHP features¶
1.2.975.1.1. Suggestions¶
Move the current classes with the same names into a distinct domain name
Change the name of the class
1.2.975.1.2. Specs¶
Short name |
Php/Php72NewClasses |
Rulesets |
All, Changed Behavior, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72 |
Exakat since |
1.0.4 |
PHP Version |
With PHP 7.2 and older |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
Very high |
Available in |