mirror of
https://github.com/itflow-org/itflow
synced 2026-06-20 00:31:05 +00:00
Allow PHP-8.2 and up Compatibility instead of just PHP-8.4
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user