mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 21:17:29 +02:00
omitted static declaration
This commit is contained in:
@@ -26,7 +26,7 @@ class Singleton
|
|||||||
*
|
*
|
||||||
* @return Singleton
|
* @return Singleton
|
||||||
*/
|
*/
|
||||||
public function getInstance()
|
public static function getInstance()
|
||||||
{
|
{
|
||||||
if (null === self::$_instance) {
|
if (null === self::$_instance) {
|
||||||
self::$_instance = new self();
|
self::$_instance = new self();
|
||||||
|
Reference in New Issue
Block a user