Skip to content

Commit

Permalink
Fix easy phan reported problems
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Dec 6, 2018
1 parent 8077922 commit f6fdb75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/BackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function createPublicity($id, $authorId, $timeStamp) {
$notification = $this->notificationManager->createNotification();
$notification->setApp('announcementcenter')
->setDateTime($dateTime)
->setObject('announcement', $id)
->setObject('announcement', (string) $id)
->setSubject('announced', [$authorId])
->setLink($this->urlGenerator->linkToRoute('announcementcenter.page.index'));

Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function delete($id) {

$notification = $this->notificationManager->createNotification();
$notification->setApp('announcementcenter')
->setObject('announcement', $id);
->setObject('announcement', (string) $id);
$this->notificationManager->markProcessed($notification);

return new Response();
Expand Down

0 comments on commit f6fdb75

Please sign in to comment.