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