Skip to content

Commit aec73e9

Browse files
felixuref3l1x
authored andcommitted
App: fix implicit nullable parameter deprecation in PHP 8.4
1 parent 99d74b9 commit aec73e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Model/Latte/TemplateFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(
2424
IRequest $httpRequest,
2525
SecurityUser $user,
2626
Storage $cacheStorage,
27-
string $templateClass = null
27+
?string $templateClass = null
2828
)
2929
{
3030
parent::__construct($latteFactory, $httpRequest, $user, $cacheStorage, $templateClass);
@@ -37,7 +37,7 @@ public function __construct(
3737
* @param class-string<T>|null $class
3838
* @return T
3939
*/
40-
public function createTemplate(Control $control = null, string $class = null): Template
40+
public function createTemplate(?Control $control = null, ?string $class = null): Template
4141
{
4242
/** @var T $template */
4343
$template = parent::createTemplate($control, $class);

0 commit comments

Comments
 (0)