Allow PHP-8.2 and up Compatibility instead of just PHP-8.4

This commit is contained in:
johnnyq
2026-06-12 17:06:10 -04:00
parent 2204bd52f4
commit d3a93652f3
220 changed files with 7198 additions and 2635 deletions

View File

@@ -9,12 +9,19 @@
* file that was distributed with this source code.
*/
if (\PHP_VERSION_ID < 80400) {
if (\PHP_VERSION_ID < 80100) {
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::TARGET_CLASS_CONSTANT)]
final class Deprecated
{
public readonly ?string $message;
public readonly ?string $since;
/**
* @readonly
*/
public ?string $message;
/**
* @readonly
*/
public ?string $since;
public function __construct(?string $message = null, ?string $since = null)
{
@@ -22,4 +29,6 @@ if (\PHP_VERSION_ID < 80400) {
$this->since = $since;
}
}
} elseif (\PHP_VERSION_ID < 80400) {
require dirname(__DIR__).'/Deprecated.php';
}