From da2f179ae97766b32f84d8180068830a605c9510 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 01:25:00 +0100 Subject: [PATCH] Typing to Profile --- lib/subscriptionlist.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/subscriptionlist.php b/lib/subscriptionlist.php index 29c1274407..aad1f1230b 100644 --- a/lib/subscriptionlist.php +++ b/lib/subscriptionlist.php @@ -27,9 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Widget to show a list of subscriptions @@ -46,14 +44,14 @@ class SubscriptionList extends ProfileList /** Owner of this list */ var $owner = null; - function __construct($profile, $owner=null, $action=null) + public function __construct(Profile $profile, $owner=null, $action=null) { parent::__construct($profile, $action); $this->owner = $owner; } - function newListItem($profile) + public function newListItem(Profile $profile) { return new SubscriptionListItem($profile, $this->owner, $this->action); } -- 2.39.2