1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Use yoda condition in the null check

This commit is contained in:
Carl Vuorinen 2016-09-04 18:37:03 +03:00 committed by Marco Pivetta
parent 7352b97b14
commit c47c23a101

View File

@ -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'])) {