Yodaism good for you: is.
This commit is contained in:
parent
1d5a0a0a1b
commit
fc3f233923
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user