1
0
mirror of synced 2025-03-28 10:53:49 +03:00

Yodaism good for you: is.

This commit is contained in:
Marco Pivetta 2014-12-05 11:18:10 +01:00
parent 1d5a0a0a1b
commit fc3f233923

View File

@ -67,7 +67,7 @@ class ReflectionEmbeddedProperty
{
$embeddedObject = $this->parentProperty->getValue($object);
if ($embeddedObject === null) {
if (null === $embeddedObject) {
return null;
}
@ -82,7 +82,7 @@ class ReflectionEmbeddedProperty
{
$embeddedObject = $this->parentProperty->getValue($object);
if ($embeddedObject === null) {
if (null === $embeddedObject) {
$embeddedObject = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->class), $this->class));
$this->parentProperty->setValue($object, $embeddedObject);
}