From 62a66efdcb2b210d47cb772ed8cd96db48ab3c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bret=C3=A9ch=C3=A9?= Date: Mon, 16 Dec 2024 20:23:58 +0100 Subject: [PATCH] fix PHP_CodeSniffer --- src/UnitOfWork.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnitOfWork.php b/src/UnitOfWork.php index f97dbeed7c4..ff30f14f6d8 100644 --- a/src/UnitOfWork.php +++ b/src/UnitOfWork.php @@ -2968,7 +2968,7 @@ public function createEntity($className, array $data, &$hints = []) $oid = spl_object_id($entity); $this->registerManaged($entity, $id, $data); - if (isset($hints[Query::HINT_READ_ONLY]) && true === $hints[Query::HINT_READ_ONLY]) { + if (isset($hints[Query::HINT_READ_ONLY]) && $hints[Query::HINT_READ_ONLY] === true) { $this->readOnlyObjects[$oid] = true; } }