mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-15 12:26:22 +02:00
removed Yoda condition
This commit is contained in:
@ -14,7 +14,7 @@ final class Singleton
|
||||
*/
|
||||
public static function getInstance(): Singleton
|
||||
{
|
||||
if (null === static::$instance) {
|
||||
if (static::$instance === null) {
|
||||
static::$instance = new static();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user