Skip to content

Commit

Permalink
Merge pull request #8139 from jeabakker/notification_event_typehint
Browse files Browse the repository at this point in the history
chore(notification): no more typehint errors when sending a notifiction as an ElggGroup
  • Loading branch information
jdalsem committed Apr 10, 2015
2 parents 2fed5fb + b56ae43 commit cc64230
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engine/classes/Elgg/Notifications/Event.php
Expand Up @@ -26,13 +26,13 @@ class Event {
/**
* Create a notification event
*
* @param \ElggData $object The object of the event (\ElggEntity)
* @param string $action The name of the action (default: create)
* @param \ElggUser $actor The user that caused the event (default: logged in user)
* @param \ElggData $object The object of the event (\ElggEntity)
* @param string $action The name of the action (default: create)
* @param \ElggEntity $actor The entity that caused the event (default: logged in user)
*
* @throws \InvalidArgumentException
*/
public function __construct(\ElggData $object, $action, \ElggUser $actor = null) {
public function __construct(\ElggData $object, $action, \ElggEntity $actor = null) {
if (elgg_instanceof($object)) {
$this->object_type = $object->getType();
$this->object_subtype = $object->getSubtype();
Expand All @@ -55,7 +55,7 @@ public function __construct(\ElggData $object, $action, \ElggUser $actor = null)
/**
* Get the actor of the event
*
* @return \ElggUser
* @return \ElggEntity|false
*/
public function getActor() {
return get_entity($this->actor_guid);
Expand Down

0 comments on commit cc64230

Please sign in to comment.