Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ca5c1e

Browse files
author
Dominik Liebler
committed
Merge pull request DesignPatternsPHP#72 from xproj/master
private on $instance attribute
2 parents 5edf90e + f815f66 commit 2ca5c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Singleton/Singleton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Singleton
1010
/**
1111
* @var cached reference to singleton instance
1212
*/
13-
protected static $instance;
13+
private static $instance;
1414

1515
/**
1616
* gets the instance via lazy initialization (created on first usage)

0 commit comments

Comments
 (0)