removed Yoda condition

This commit is contained in:
Dominik Liebler
2019-08-25 20:34:48 +02:00
parent 3507b75671
commit b3f144c4b2

View File

@ -14,7 +14,7 @@ final class Singleton
*/ */
public static function getInstance(): Singleton public static function getInstance(): Singleton
{ {
if (null === static::$instance) { if (static::$instance === null) {
static::$instance = new static(); static::$instance = new static();
} }