Skip to content

Commit b3f144c

Browse files
author
Dominik Liebler
committed
removed Yoda condition
1 parent 3507b75 commit b3f144c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Creational/Singleton/Singleton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class Singleton
1414
*/
1515
public static function getInstance(): Singleton
1616
{
17-
if (null === static::$instance) {
17+
if (static::$instance === null) {
1818
static::$instance = new static();
1919
}
2020

0 commit comments

Comments
 (0)