Use yoda condition in the null check
This commit is contained in:
parent
95546d68c5
commit
00bbf4f523
@ -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…
x
Reference in New Issue
Block a user