prolic/DesignPatternsPHP — pull request #1 by olekhy (2013-09-21 20:10:49+00:00)
Title: Update Singleton.php

Hi! I'm sure current realization of singleton is classic variance of the pattern. But not really correct (more then is mistaken for me) in relation to real codding on PHP projects. ;)

```php
class A extends Singleton // Singleton which used static inside of getInstance() method
{}

class B extends A
{}

$a = A::getInstance();
$b = B::getInstance();
$c = Singleton::getInstance();

$a === $b && $b === $c; // returned FALSE
```
At using of Updated Singleton `TRUE` will be returned on expression above.