Skip to content

Commit cb7ddaf

Browse files
committed
CI didn't like inline ??= in older PHP versions
1 parent 9f3fa0e commit cb7ddaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,11 @@ public function loadOneToOneEntity(array $assoc, $sourceEntity, array $identifie
840840
// this case we directly reference the column-keyed data used
841841
// to initialize the source entity before throwing an exception.
842842
$resolvedSourceData = false;
843-
if (isset(($sourceEntityData ??= $this->em->getUnitOfWork()->getOriginalEntityData($sourceEntity))[$sourceKeyColumn])) {
843+
if (! isset($sourceEntityData)) {
844+
$sourceEntityData = $this->em->getUnitOfWork()->getOriginalEntityData($sourceEntity);
845+
}
846+
847+
if (isset($sourceEntityData[$sourceKeyColumn])) {
844848
$dataValue = $sourceEntityData[$sourceKeyColumn];
845849
if ($dataValue !== null) {
846850
$resolvedSourceData = true;

0 commit comments

Comments
 (0)