Version 2.0: PHP 8.1

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

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

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

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

Loading…
Cancel
Save