summaryrefslogtreecommitdiff
path: root/src/Singleton.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Singleton.php')
-rw-r--r--src/Singleton.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Singleton.php b/src/Singleton.php
index 864da59..3238248 100644
--- a/src/Singleton.php
+++ b/src/Singleton.php
@@ -6,10 +6,10 @@ trait Singleton
{
private static self $instance;
- public static function getInstance(): self
+ public static function getInstance(): static
{
if (! isset(self::$instance)) {
- self::$instance = new self();
+ self::$instance = new static();
}
return self::$instance;