Skip to content

Commit 811f7d0

Browse files
committed
fix PHP_CodeSniffer
1 parent bc2ed3c commit 811f7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnitOfWork.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ public function createEntity($className, array $data, &$hints = [])
29682968
$oid = spl_object_id($entity);
29692969
$this->registerManaged($entity, $id, $data);
29702970

2971-
if (isset($hints[Query::HINT_READ_ONLY]) && true === $hints[Query::HINT_READ_ONLY]) {
2971+
if (isset($hints[Query::HINT_READ_ONLY]) && $hints[Query::HINT_READ_ONLY] === true) {
29722972
$this->readOnlyObjects[$oid] = true;
29732973
}
29742974
}

0 commit comments

Comments
 (0)