Version 2.0: PHP 8.1

master 2.0.0
Julien Rosset 9 months ago
parent 2901667111
commit 7d397a6552

@ -9,13 +9,13 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
"dev-master": "2.x-dev"
}
},
"minimum-stability": "stable",
"require": {
"php": "^7.4 || ^8.0"
"php": "^8.1"
},
"autoload": {
"psr-4": {

@ -15,5 +15,5 @@ interface ISingleton {
*
* @return static The instance
*/
public static function getInstance (): self;
public static function getInstance (): static;
}

@ -25,7 +25,7 @@ trait TSingleton {
/**
* @inheritDoc
*/
public static final function getInstance (): self {
public static final function getInstance (): static {
if (!isset(self::$singletonInstance)) {
self::$singletonInstance = new static();
}

Loading…
Cancel
Save