Add var type to newListItem() parameter
Fixes some "Declaration of $child::method should be compatible with $parent::method" warnings.
This commit is contained in:
parent
8b8e2825e3
commit
dc7c64592b
@ -151,7 +151,7 @@ class GroupBlockList extends ProfileList
|
|||||||
$this->group = $group;
|
$this->group = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new GroupBlockListItem($profile, $this->group, $this->action);
|
return new GroupBlockListItem($profile, $this->group, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ class GroupqueueAction extends GroupAction
|
|||||||
// @todo FIXME: documentation missing.
|
// @todo FIXME: documentation missing.
|
||||||
class GroupQueueList extends GroupMemberList
|
class GroupQueueList extends GroupMemberList
|
||||||
{
|
{
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new GroupQueueListItem($profile, $this->group, $this->action);
|
return new GroupQueueListItem($profile, $this->group, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ class SearchNoticeList extends NoticeList {
|
|||||||
$this->terms = $terms;
|
$this->terms = $terms;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newListItem($notice)
|
function newListItem(Notice $notice)
|
||||||
{
|
{
|
||||||
return new SearchNoticeListItem($notice, $this->out, $this->terms);
|
return new SearchNoticeListItem($notice, $this->out, $this->terms);
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ class PeopletagMemberList extends ProfileList
|
|||||||
$this->peopletag = $peopletag;
|
$this->peopletag = $peopletag;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new PeopletagMemberListItem($profile, $this->peopletag, $this->action);
|
return new PeopletagMemberListItem($profile, $this->peopletag, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ class PeopletagSubscriberList extends ProfileList
|
|||||||
$this->peopletag = $peopletag;
|
$this->peopletag = $peopletag;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new PeopletagSubscriberListItem($profile, $this->peopletag, $this->action);
|
return new PeopletagSubscriberListItem($profile, $this->peopletag, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ class GroupMemberList extends ProfileList
|
|||||||
$this->group = $group;
|
$this->group = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new GroupMemberListItem($profile, $this->group, $this->action);
|
return new GroupMemberListItem($profile, $this->group, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ class ConversationTree extends NoticeList
|
|||||||
*
|
*
|
||||||
* @return NoticeListItem a list item to show
|
* @return NoticeListItem a list item to show
|
||||||
*/
|
*/
|
||||||
function newListItem($notice)
|
function newListItem(Notice $notice)
|
||||||
{
|
{
|
||||||
return new ConversationTreeItem($notice, $this->out);
|
return new ConversationTreeItem($notice, $this->out);
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ class ShowfavoritesAction extends ShowstreamAction
|
|||||||
|
|
||||||
class FavoritesNoticeList extends NoticeList
|
class FavoritesNoticeList extends NoticeList
|
||||||
{
|
{
|
||||||
function newListItem($notice)
|
function newListItem(Notice $notice)
|
||||||
{
|
{
|
||||||
return new FavoritesNoticeListItem($notice, $this->out);
|
return new FavoritesNoticeListItem($notice, $this->out);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ class SearchSubsAction extends GalleryAction
|
|||||||
|
|
||||||
class SearchSubscriptionsList extends SubscriptionList
|
class SearchSubscriptionsList extends SubscriptionList
|
||||||
{
|
{
|
||||||
function newListItem($searchsub)
|
function newListItem(Profile $searchsub)
|
||||||
{
|
{
|
||||||
return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action);
|
return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ class TagSubsAction extends GalleryAction
|
|||||||
|
|
||||||
class TagSubscriptionsList extends SubscriptionList
|
class TagSubscriptionsList extends SubscriptionList
|
||||||
{
|
{
|
||||||
function newListItem($tagsub)
|
function newListItem(Profile $tagsub)
|
||||||
{
|
{
|
||||||
return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action);
|
return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action);
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ class FlaggedProfileList extends ProfileList
|
|||||||
*
|
*
|
||||||
* @return ProfileListItem newly-created item
|
* @return ProfileListItem newly-created item
|
||||||
*/
|
*/
|
||||||
function newListItem($profile)
|
function newListItem(Profile $profile)
|
||||||
{
|
{
|
||||||
return new FlaggedProfileListItem($this->profile, $this->action);
|
return new FlaggedProfileListItem($this->profile, $this->action);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user