1.2.978. Php 8.3 New Classes¶
New classes, introduced in PHP 8.3. 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 8.3.
The new classes are :
DateError
DateObjectError
DateRangeError
DateException
DateInvalidTimeZoneException
DateInvalidOperationException
DateMalformedStringException
DateMalformedIntervalStringException
DateMalformedPeriodStringException
Random\`IntervalBoundary <https://www.php.net/intervalboundary>`_
<?php
namespace {
// Global namespace
class DateError {
// Move to a namespace
// or, remove this class
}
}
namespace B {
class DateError {
// This is OK : in a namespace
}
}
?>
See also New Classes and Interfaces.
1.2.978.1. Connex PHP features¶
1.2.978.1.1. Suggestions¶
Move the current classes with the same names into a distinct domain name
Change the name of the class
1.2.978.1.2. Specs¶
Short name |
Php/Php83NewClasses |
Rulesets |
|
Exakat since |
1.0.4 |
PHP Version |
With PHP 8.3 and older |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
Very high |
Available in |