mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-09 23:49:20 +02:00
Fix PHP 8.4 deprecation warnings
"Implicitly marking parameter $var as nullable is deprecated, the explicit nullable type must be used instead"
This commit is contained in:
parent
03e2752139
commit
4ca58b4178
@ -97,7 +97,7 @@ class OTS_Guild extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
*
|
*
|
||||||
* @param IOTS_GuildAction $invites Invites driver (don't pass it to clear driver).
|
* @param IOTS_GuildAction $invites Invites driver (don't pass it to clear driver).
|
||||||
*/
|
*/
|
||||||
public function setInvitesDriver(IOTS_GuildAction $invites = null)
|
public function setInvitesDriver(?IOTS_GuildAction $invites = null)
|
||||||
{
|
{
|
||||||
$this->invites = $invites;
|
$this->invites = $invites;
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ class OTS_Guild extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
*
|
*
|
||||||
* @param IOTS_GuildAction $requests Membership requests driver (don't pass it to clear driver).
|
* @param IOTS_GuildAction $requests Membership requests driver (don't pass it to clear driver).
|
||||||
*/
|
*/
|
||||||
public function setRequestsDriver(IOTS_GuildAction $requests = null)
|
public function setRequestsDriver(?IOTS_GuildAction $requests = null)
|
||||||
{
|
{
|
||||||
$this->requests = $requests;
|
$this->requests = $requests;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ class OTS_GuildRank extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
* @throws PDOException On PDO operation error.
|
* @throws PDOException On PDO operation error.
|
||||||
* @throws E_OTS_NotLoaded If given <var>$guild</var> object is not loaded.
|
* @throws E_OTS_NotLoaded If given <var>$guild</var> object is not loaded.
|
||||||
*/
|
*/
|
||||||
public function find($name, OTS_Guild $guild = null)
|
public function find($name, ?OTS_Guild $guild = null)
|
||||||
{
|
{
|
||||||
$where = '';
|
$where = '';
|
||||||
|
|
||||||
|
@ -2026,7 +2026,7 @@ class OTS_Player extends OTS_Row_DAO
|
|||||||
* @param OTS_GuildRank|null Guild rank (null to clear assign).
|
* @param OTS_GuildRank|null Guild rank (null to clear assign).
|
||||||
* @throws E_OTS_NotLoaded If passed <var>$guildRank</var> parameter is not loaded.
|
* @throws E_OTS_NotLoaded If passed <var>$guildRank</var> parameter is not loaded.
|
||||||
*/
|
*/
|
||||||
public function setRank(OTS_GuildRank $guildRank = null)
|
public function setRank(?OTS_GuildRank $guildRank = null)
|
||||||
{
|
{
|
||||||
if(isset($guildRank))
|
if(isset($guildRank))
|
||||||
$this->setRankId($guildRank->getId(), $guildRank->getGuild()->getId());
|
$this->setRankId($guildRank->getId(), $guildRank->getGuild()->getId());
|
||||||
@ -2632,7 +2632,7 @@ class OTS_Player extends OTS_Row_DAO
|
|||||||
* @throws E_OTS_NotLoaded If player is not loaded.
|
* @throws E_OTS_NotLoaded If player is not loaded.
|
||||||
* @throws PDOException On PDO operation error.
|
* @throws PDOException On PDO operation error.
|
||||||
*/
|
*/
|
||||||
public function setSlot($slot, OTS_Item $item = null, $pid = 0)
|
public function setSlot($slot, ?OTS_Item $item = null, $pid = 0)
|
||||||
{
|
{
|
||||||
static $sid;
|
static $sid;
|
||||||
|
|
||||||
@ -2776,7 +2776,7 @@ class OTS_Player extends OTS_Row_DAO
|
|||||||
* @throws E_OTS_NotLoaded If player is not loaded.
|
* @throws E_OTS_NotLoaded If player is not loaded.
|
||||||
* @throws PDOException On PDO operation error.
|
* @throws PDOException On PDO operation error.
|
||||||
*/
|
*/
|
||||||
public function setDepot($depot, OTS_Item $item = null, $pid = 0, $depot_id = 0)
|
public function setDepot($depot, ?OTS_Item $item = null, $pid = 0, $depot_id = 0)
|
||||||
{
|
{
|
||||||
static $sid;
|
static $sid;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user