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

@ -41,7 +41,7 @@ class FrameModel implements Container, Identifiable, Renderable
* @param Renderable[] $children Children
* @return static
*/
public static function create($modelId = null, array $children = null)
public static function create($modelId = null, ?array $children = null)
{
return new static($modelId, $children);
}
@ -53,7 +53,7 @@ class FrameModel implements Container, Identifiable, Renderable
* @param string $modelId Model id
* @param Renderable[] $children Children
*/
public function __construct($modelId = null, array $children = null)
public function __construct($modelId = null, ?array $children = null)
{
if ($modelId) {
$this->setId($modelId);
@ -176,7 +176,7 @@ class FrameModel implements Container, Identifiable, Renderable
* @deprecated Use Style
* @see Style
*/
public function setFormat(Format $format = null)
public function setFormat(?Format $format = null)
{
$this->format = $format;
return $this;