Skip to content

Commit 046ead0

Browse files
Mark param explicitly as nullable
- Deprecated in PHP 8.4
1 parent db9f830 commit 046ead0

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

library/Reporting/Hook/ReportHook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract public function getName();
2626
*
2727
* @return ReportData|null
2828
*/
29-
public function getData(Timerange $timerange, array $config = null)
29+
public function getData(Timerange $timerange, ?array $config = null)
3030
{
3131
return null;
3232
}
@@ -39,7 +39,7 @@ public function getData(Timerange $timerange, array $config = null)
3939
*
4040
* @return ValidHtml|null
4141
*/
42-
public function getHtml(Timerange $timerange, array $config = null)
42+
public function getHtml(Timerange $timerange, ?array $config = null)
4343
{
4444
return null;
4545
}

library/Reporting/Reports/SystemReport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function getName()
1616
return 'System';
1717
}
1818

19-
public function getHtml(Timerange $timerange, array $config = null)
19+
public function getHtml(Timerange $timerange, ?array $config = null)
2020
{
2121
ob_start();
2222
phpinfo();

library/Reporting/Web/Widget/CompatDropdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class CompatDropdown extends Dropdown
1111
{
12-
public function addLink($content, $url, $icon = null, array $attributes = null)
12+
public function addLink($content, $url, $icon = null, ?array $attributes = null)
1313
{
1414
$link = new ActionLink($content, $url, $icon, ['class' => 'dropdown-item']);
1515
if (! empty($attributes)) {

library/Reporting/Web/Widget/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Template extends BaseHtmlElement
2727

2828
protected $preview;
2929

30-
public static function getDataUrl(array $image = null)
30+
public static function getDataUrl(?array $image = null)
3131
{
3232
if (empty($image)) {
3333
return 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';

0 commit comments

Comments
 (0)