Skip to content

Commit 2c2c47b

Browse files
committed
Update PHP minimum version to 8.0 and dependencies to latest compatible version
1 parent 66094e0 commit 2c2c47b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Mapper/DataMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function setRawColumn(string $name, mixed $value): void
355355
/**
356356
* {@inheritedoc}
357357
*/
358-
public function getRelated(string $name, callable $callback = null): mixed
358+
public function getRelated(string $name, ?callable $callback = null): mixed
359359
{
360360
if (array_key_exists($name, $this->relations)) {
361361
return $this->relations[$name];

src/Mapper/DataMapperInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function setRawColumn(string $name, mixed $value): void;
149149
*
150150
* @return mixed
151151
*/
152-
public function getRelated(string $name, callable $callback = null): mixed;
152+
public function getRelated(string $name, ?callable $callback = null): mixed;
153153

154154
/**
155155
* Set the value for the given relation

0 commit comments

Comments
 (0)