blob: a1543de7912b6928424e4d2a6b0e27a5cecb03ed (
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
32
|
From 0ce35e5ac76db231cffa570ba4083dda7e706cfd Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 16 Oct 2018 12:24:02 +0200
Subject: [PATCH] fix PHP 7.3 Warning: "continue" targeting switch is
equivalent to "break". Did you mean to use "continue 2"?
---
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 fcbd3ab942..93d6e956fe 100644
--- a/lib/Doctrine/ORM/UnitOfWork.php
+++ b/lib/Doctrine/ORM/UnitOfWork.php
@@ -2633,7 +2633,7 @@ public function createEntity($className, array $data, &$hints = array())
$class->reflFields[$field]->setValue($entity, $data[$field]);
$this->originalEntityData[$oid][$field] = $data[$field];
- continue;
+ break;
}
$associatedId = array();
@@ -2662,7 +2662,7 @@ public function createEntity($className, array $data, &$hints = array())
$class->reflFields[$field]->setValue($entity, null);
$this->originalEntityData[$oid][$field] = null;
- continue;
+ break;
}
if ( ! isset($hints['fetchMode'][$class->name][$field])) {
|