Skip to content

Commit 0f09c96

Browse files
committed
Merge branch '6.2' of https://github.com/WoltLab/WCF into 6.2
2 parents 3ac6442 + c3dd527 commit 0f09c96

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: '#^Variable \$this might not be defined\.$#'
5-
identifier: variable.undefined
6-
count: 1
7-
path: wcfsetup/install/files/acp/update_com.woltlab.wcf_6.1_spider_step1.php
8-
93
-
104
message: '#^Property wcf\\acp\\form\\AbstractCategoryAddForm\:\:\$categoryNodeTree \(wcf\\data\\category\\UncachedCategoryNodeTree\) does not accept wcf\\data\\category\\CategoryNodeTree\.$#'
115
identifier: assign.propertyType

wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public function update()
8484

8585
/**
8686
* Validates the 'copy' action.
87+
*
88+
* @return void
8789
* @deprecated 6.2 Use `CopyUserGroup` instead.
8890
*/
8991
public function validateCopy()
@@ -105,6 +107,8 @@ public function validateCopy()
105107

106108
/**
107109
* Copies a user group.
110+
*
111+
* @return array{groupID: int, redirectURL: string}
108112
* @deprecated 6.2 Use `CopyUserGroup` instead.
109113
*/
110114
public function copy()

wcfsetup/install/files/lib/page/MembersListPage.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class MembersListPage extends AbstractListViewPage
3232
public ?int $searchID = null;
3333

3434
/**
35+
* @var list<string>
3536
* @deprecated 6.2 No longer in use, but here for backwards compatibility.
3637
*/
3738
public $validSortFields = ['username', 'registrationDate', 'activityPoints', 'likesReceived', 'lastActivityTime'];

wcfsetup/install/files/lib/page/TeamPage.class.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace wcf\page;
44

5+
use wcf\data\user\group\UserGroup;
56
use wcf\data\user\group\UserGroupList;
67
use wcf\system\listView\user\TeamListView;
78
use wcf\system\page\PageLocationManager;
@@ -26,6 +27,12 @@ class TeamPage extends AbstractPage
2627
*/
2728
public $neededModules = ['MODULE_TEAM_PAGE'];
2829

30+
/**
31+
* @var list<array{
32+
* team: UserGroup,
33+
* listView: TeamListView,
34+
* }>
35+
*/
2936
protected array $teams = [];
3037

3138
#[\Override]

wcfsetup/install/files/lib/system/message/quote/AbstractMessageQuoteHandler.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function render(array $data, $supportPaste = false)
6969
*
7070
* @param mixed[][] $data
7171
* @param bool $render
72+
* @param bool $renderAsString
7273
* @return string[]
7374
* @deprecated 6.2 Implement `getMessage()` instead.
7475
*/

wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ public function removeQuote($quoteID)
144144
* Returns an array containing the quote author, link and text.
145145
*
146146
* @param string $quoteID
147-
*
148-
* @return string[]|false
147+
* @return array{objectID: int, author: string, avatar: string, link: string, message: string, rawMessage: string}
149148
* @deprecated 6.2
150149
*/
151150
public function getQuoteComponents($quoteID)
@@ -245,30 +244,25 @@ public function getQuotesByParentObjectID($objectType, $parentObjectID, $markFor
245244
*
246245
* @param string $quoteID
247246
* @param bool $useFullQuote
248-
*
249-
* @return string|null
250-
*
247+
* @return string
251248
* @deprecated 6.2
252249
*/
253250
public function getQuote($quoteID, $useFullQuote = true)
254251
{
255252
\assert(isset($this->legacyQuoteData));
253+
256254
if ($useFullQuote && $this->legacyQuoteData['fullQuote'] !== '') {
257255
return $this->legacyQuoteData['fullQuote'];
258-
} else {
259-
return $this->legacyQuoteData['message'];
260256
}
261257

262-
return null;
258+
return $this->legacyQuoteData['message'];
263259
}
264260

265261
/**
266262
* Returns the object id by quote id.
267263
*
268264
* @param string $quoteID
269-
*
270-
* @return int|null
271-
*
265+
* @return null
272266
* @deprecated 6.2
273267
*/
274268
public function getObjectID($quoteID)

0 commit comments

Comments
 (0)