fix many PHP 8.4 compatibility issues

This commit is contained in:
Beu
2025-05-26 22:50:03 +02:00
parent 03a991cd50
commit 7a8d9f2b0b
59 changed files with 137 additions and 98 deletions

View File

@ -29,7 +29,7 @@ class ManiaLinks
* @param ManiaLink[] $children ManiaLink children
* @return static
*/
public static function create(array $children = null)
public static function create(?array $children = null)
{
return new static($children);
}
@ -40,7 +40,7 @@ class ManiaLinks
* @api
* @param ManiaLink[] $children ManiaLink children
*/
public function __construct(array $children = null)
public function __construct(?array $children = null)
{
if ($children) {
$this->setChildren($children);
@ -162,7 +162,7 @@ class ManiaLinks
* @param CustomUI $customUI CustomUI object
* @return static
*/
public function setCustomUI(CustomUI $customUI = null)
public function setCustomUI(?CustomUI $customUI = null)
{
$this->customUI = $customUI;
return $this;