Use yoda condition in the null check
This commit is contained in:
parent
95546d68c5
commit
00bbf4f523
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class SimpleObjectHydrator extends AbstractHydrator
|
|||
}
|
||||
|
||||
// Check if value is null before conversion (because some types convert null to something else)
|
||||
$valueIsNull = $value === null;
|
||||
$valueIsNull = null === $value;
|
||||
|
||||
// Convert field to a valid PHP value
|
||||
if (isset($cacheKeyInfo['type'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue