From dc7c64592b60db75f0e1762532e53554b894ff90 Mon Sep 17 00:00:00 2001 From: Chimo Date: Thu, 16 Mar 2017 22:57:16 -0400 Subject: [PATCH] Add var type to newListItem() parameter Fixes some "Declaration of $child::method should be compatible with $parent::method" warnings. --- actions/blockedfromgroup.php | 2 +- actions/groupqueue.php | 2 +- actions/noticesearch.php | 2 +- actions/peopletagged.php | 2 +- actions/peopletagsubscribers.php | 2 +- lib/groupmemberlist.php | 2 +- plugins/ConversationTree/lib/conversationtree.php | 2 +- plugins/Favorite/actions/showfavorites.php | 2 +- plugins/SearchSub/actions/searchsubs.php | 2 +- plugins/TagSub/actions/tagsubs.php | 2 +- plugins/UserFlag/actions/adminprofileflag.php | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/actions/blockedfromgroup.php b/actions/blockedfromgroup.php index a2e7c5767f..d2873fe467 100644 --- a/actions/blockedfromgroup.php +++ b/actions/blockedfromgroup.php @@ -151,7 +151,7 @@ class GroupBlockList extends ProfileList $this->group = $group; } - function newListItem($profile) + function newListItem(Profile $profile) { return new GroupBlockListItem($profile, $this->group, $this->action); } diff --git a/actions/groupqueue.php b/actions/groupqueue.php index c50eff36f8..98da77e01a 100644 --- a/actions/groupqueue.php +++ b/actions/groupqueue.php @@ -153,7 +153,7 @@ class GroupqueueAction extends GroupAction // @todo FIXME: documentation missing. class GroupQueueList extends GroupMemberList { - function newListItem($profile) + function newListItem(Profile $profile) { return new GroupQueueListItem($profile, $this->group, $this->action); } diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 2886700f6a..0d6fb51fb4 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -185,7 +185,7 @@ class SearchNoticeList extends NoticeList { $this->terms = $terms; } - function newListItem($notice) + function newListItem(Notice $notice) { return new SearchNoticeListItem($notice, $this->out, $this->terms); } diff --git a/actions/peopletagged.php b/actions/peopletagged.php index 1b0f897c11..db2420a8a3 100644 --- a/actions/peopletagged.php +++ b/actions/peopletagged.php @@ -167,7 +167,7 @@ class PeopletagMemberList extends ProfileList $this->peopletag = $peopletag; } - function newListItem($profile) + function newListItem(Profile $profile) { return new PeopletagMemberListItem($profile, $this->peopletag, $this->action); } diff --git a/actions/peopletagsubscribers.php b/actions/peopletagsubscribers.php index e5be8a3ff4..927cf66e64 100644 --- a/actions/peopletagsubscribers.php +++ b/actions/peopletagsubscribers.php @@ -167,7 +167,7 @@ class PeopletagSubscriberList extends ProfileList $this->peopletag = $peopletag; } - function newListItem($profile) + function newListItem(Profile $profile) { return new PeopletagSubscriberListItem($profile, $this->peopletag, $this->action); } diff --git a/lib/groupmemberlist.php b/lib/groupmemberlist.php index ba608213a4..f055e24731 100644 --- a/lib/groupmemberlist.php +++ b/lib/groupmemberlist.php @@ -12,7 +12,7 @@ class GroupMemberList extends ProfileList $this->group = $group; } - function newListItem($profile) + function newListItem(Profile $profile) { return new GroupMemberListItem($profile, $this->group, $this->action); } diff --git a/plugins/ConversationTree/lib/conversationtree.php b/plugins/ConversationTree/lib/conversationtree.php index 144902fce2..ff39b3e4f4 100644 --- a/plugins/ConversationTree/lib/conversationtree.php +++ b/plugins/ConversationTree/lib/conversationtree.php @@ -140,7 +140,7 @@ class ConversationTree extends NoticeList * * @return NoticeListItem a list item to show */ - function newListItem($notice) + function newListItem(Notice $notice) { return new ConversationTreeItem($notice, $this->out); } diff --git a/plugins/Favorite/actions/showfavorites.php b/plugins/Favorite/actions/showfavorites.php index 08366e4c16..c66c894610 100644 --- a/plugins/Favorite/actions/showfavorites.php +++ b/plugins/Favorite/actions/showfavorites.php @@ -147,7 +147,7 @@ class ShowfavoritesAction extends ShowstreamAction class FavoritesNoticeList extends NoticeList { - function newListItem($notice) + function newListItem(Notice $notice) { return new FavoritesNoticeListItem($notice, $this->out); } diff --git a/plugins/SearchSub/actions/searchsubs.php b/plugins/SearchSub/actions/searchsubs.php index fd89075032..2f9b8db8a7 100644 --- a/plugins/SearchSub/actions/searchsubs.php +++ b/plugins/SearchSub/actions/searchsubs.php @@ -136,7 +136,7 @@ class SearchSubsAction extends GalleryAction class SearchSubscriptionsList extends SubscriptionList { - function newListItem($searchsub) + function newListItem(Profile $searchsub) { return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action); } diff --git a/plugins/TagSub/actions/tagsubs.php b/plugins/TagSub/actions/tagsubs.php index 1e927b4fd1..2c56296a3e 100644 --- a/plugins/TagSub/actions/tagsubs.php +++ b/plugins/TagSub/actions/tagsubs.php @@ -136,7 +136,7 @@ class TagSubsAction extends GalleryAction class TagSubscriptionsList extends SubscriptionList { - function newListItem($tagsub) + function newListItem(Profile $tagsub) { return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action); } diff --git a/plugins/UserFlag/actions/adminprofileflag.php b/plugins/UserFlag/actions/adminprofileflag.php index a4d97031ac..35ce474ea4 100644 --- a/plugins/UserFlag/actions/adminprofileflag.php +++ b/plugins/UserFlag/actions/adminprofileflag.php @@ -200,7 +200,7 @@ class FlaggedProfileList extends ProfileList * * @return ProfileListItem newly-created item */ - function newListItem($profile) + function newListItem(Profile $profile) { return new FlaggedProfileListItem($this->profile, $this->action); }