mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-16 21:01:16 +02:00
removed Yoda condition
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user