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