Skip to content

Commit c903f6b

Browse files
authored
Using $class as intended
Instead of using string
1 parent 1e02625 commit c903f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

singleton/SingletonLegacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function getInstance() {
3636
// If we have no instance, create one.
3737
if (self::$instance == false) {
3838
$class = __CLASS__;
39-
self::$instance = new SingletonLegacy;
39+
self::$instance = new $class;
4040
}
4141

4242
// If we have an instance, return it

0 commit comments

Comments
 (0)