summaryrefslogtreecommitdiffstats
path: root/php-doctrine-orm-php73.patch
blob: d0b3f2b98020494cacbb8b5dfd25c58c3daccfa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 07fc401d255a4cdb4a557147d1c8a3fc7a0c718d Mon Sep 17 00:00:00 2001
From: Cyril PASCAL <cyril.pascal_github@m4x.org>
Date: Thu, 26 Jul 2018 14:32:52 +0200
Subject: [PATCH] Make code php 7.3 lint-compatible

---
 lib/Doctrine/ORM/UnitOfWork.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php
index 6767e7ef31..c79afd084e 100644
--- a/lib/Doctrine/ORM/UnitOfWork.php
+++ b/lib/Doctrine/ORM/UnitOfWork.php
@@ -2715,7 +2715,7 @@ public function createEntity($className, array $data, &$hints = [])
                         $class->reflFields[$field]->setValue($entity, $data[$field]);
                         $this->originalEntityData[$oid][$field] = $data[$field];
 
-                        continue;
+                        break;
                     }
 
                     $associatedId = [];
@@ -2744,7 +2744,7 @@ public function createEntity($className, array $data, &$hints = [])
                         $class->reflFields[$field]->setValue($entity, null);
                         $this->originalEntityData[$oid][$field] = null;
 
-                        continue;
+                        break;
                     }
 
                     if ( ! isset($hints['fetchMode'][$class->name][$field])) {