Skip to content

Commit

Permalink
add todo message to \method_exists calls
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Sep 9, 2023
1 parent db1c183 commit c8a9953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mapping/Event/Adapter/ORM.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function getObjectManager()
throw new \LogicException(sprintf('Event args must be set before calling "%s()".', __METHOD__));
}

// @todo create getObjectManager in UploadableBaseEventArgs.php and remove this check
if (\method_exists($this->args, 'getObjectManager')) {
return $this->args->getObjectManager();
}
Expand All @@ -108,6 +109,7 @@ public function getObject(): object
throw new \LogicException(sprintf('Event args must be set before calling "%s()".', __METHOD__));
}

// @todo create getObject in UploadableBaseEventArgs.php and remove this check
if (\method_exists($this->args, 'getObject')) {
return $this->args->getObject();
}
Expand Down

0 comments on commit c8a9953

Please sign in to comment.