Skip to content

Commit aea2e7a

Browse files
committed
Fixed compatibility with PHP 8.4
1 parent b420a44 commit aea2e7a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/LeanMapperIntegration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(
5353
$schemaFile,
5454
$migrationsDirectory,
5555
$entityDirectories,
56-
array $options = NULL,
56+
?array $options,
5757
array $customTypes,
5858
array $ignoredTables,
5959
$databaseType,

tests/cases/lm-empty-properties/Mapper.php

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

55
class Mapper extends \LeanMapper\DefaultMapper
66
{
7-
public function getEntityClass(string $table, LeanMapper\Row $row = NULL): string
7+
public function getEntityClass(string $table, ?LeanMapper\Row $row = NULL): string
88
{
99
if ($table === 'client') {
1010
if (isset($row->type)) {

tests/cases/lm-schema-ignore/Mapper.php

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

55
class Mapper extends \LeanMapper\DefaultMapper
66
{
7-
public function getEntityClass(string $table, LeanMapper\Row $row = NULL): string
7+
public function getEntityClass(string $table, ?LeanMapper\Row $row = NULL): string
88
{
99
if ($table === 'client') {
1010
if (isset($row->type)) {

tests/cases/lm-sti/Mapper.php

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

55
class Mapper extends \LeanMapper\DefaultMapper
66
{
7-
public function getEntityClass(string $table, LeanMapper\Row $row = NULL): string
7+
public function getEntityClass(string $table, ?LeanMapper\Row $row = NULL): string
88
{
99
if ($table === 'client') {
1010
if (isset($row->type)) {

tests/cases/single-table-inheritance/Mapper.php

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

88
class Mapper extends \LeanMapper\DefaultMapper
99
{
10-
public function getEntityClass(string $table, \LeanMapper\Row $row = NULL): string
10+
public function getEntityClass(string $table, ?\LeanMapper\Row $row = NULL): string
1111
{
1212
if ($table === 'user') {
1313
if ($row === NULL) {

0 commit comments

Comments
 (0)