Use yoda condition in the null check
This commit is contained in:
parent
7352b97b14
commit
c47c23a101
@ -123,7 +123,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