Skip to content

Commit

Permalink
Use null === instead is_null
Browse files Browse the repository at this point in the history
  • Loading branch information
JDruery committed Sep 8, 2023
1 parent 5b79ec1 commit 467bf69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tree/Strategy/ORM/Closure.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ public function processPostPersist($em, $entity, AdapterInterface $ea)
$identifier = $meta->getSingleIdentifierFieldName();
$nodeId = $meta->getReflectionProperty($identifier)->getValue($node);

if (is_null($nodeId)) {
// Do not update if the node has not been persisted yet
if (null === $nodeId) {
// Do not update if the node has not been persisted yet.
continue;
}

Expand Down

0 comments on commit 467bf69

Please sign in to comment.