Skip to content

Commit 51be669

Browse files
committed
Merge branch 'dumindu-patch-1'
2 parents e01468f + b1d183b commit 51be669

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,11 @@ final class President {
476476
}
477477

478478
public static function getInstance() : President {
479-
if ($this->instance) {
480-
return $this->instance;
479+
if (!self::$instance) {
480+
self::$instance = new self();
481481
}
482482

483-
$this->instance = new President();
484-
return $this->instance;
483+
return self::$instance;
485484
}
486485

487486
private function __clone() {

0 commit comments

Comments
 (0)