Skip to content

Commit 02de1ca

Browse files
PHP 8.4 compatibility
1 parent b988a44 commit 02de1ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/models/station.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
class StationPage extends Kirby\Cms\Page
44
{
5-
public function writeContent(array $data, string $languageCode = null): bool
6-
{
5+
public function writeContent(
6+
array $data,
7+
?string $languageCode = null
8+
): bool {
79
if ($station = Db::first("stations", "*", ["uid" => $this->uid()])) {
810
return Db::update("stations", $data, ["uid" => $this->uid()]);
911
} else {

0 commit comments

Comments
 (0)