Skip to content

Commit

Permalink
remove use ilObjUSer TestPlaceholderValues
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer authored and kergomard committed Sep 19, 2024
1 parent 396fea7 commit d574589
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

namespace ILIAS\Test\Certificate;

use ilObjUser;

/**
* @author Niels Theen <[email protected]>
*/
Expand Down Expand Up @@ -148,7 +146,7 @@ public function getPlaceholderValues(int $user_id, int $obj_id): array
$placeholders['DATETIME_COMPLETED'] = '';

if ($completionDate !== false && $completionDate !== '') {
/** @var ilObjUser $user */
/** @var \ilObjUser $user */
$user = $this->objectHelper->getInstanceByObjId($user_id);
$placeholders['DATE_COMPLETED'] = $this->dateHelper->formatDate($completionDate, $user);
$placeholders['DATETIME_COMPLETED'] = $this->dateHelper->formatDateTime($completionDate, $user);
Expand Down

0 comments on commit d574589

Please sign in to comment.