diff options
Diffstat (limited to 'src/Singleton.php')
| -rw-r--r-- | src/Singleton.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Singleton.php b/src/Singleton.php index b4d4598..864da59 100644 --- a/src/Singleton.php +++ b/src/Singleton.php @@ -5,13 +5,13 @@ namespace App;  trait Singleton  {    private static self $instance; -   +    public static function getInstance(): self    {      if (! isset(self::$instance)) {        self::$instance = new self();      } -     +      return self::$instance;    }  } | 
