From 7f9409b3558848b4240fdfb9c84afe26f2f5c4a1 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 22 Nov 2024 21:21:41 +0200 Subject: [PATCH] [#87] Fix PHP 8.4 deprecations --- src/AutoMapper.php | 4 ++-- src/Configuration/AutoMapperConfig.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AutoMapper.php b/src/AutoMapper.php index 8b719e5..09172cd 100644 --- a/src/AutoMapper.php +++ b/src/AutoMapper.php @@ -33,9 +33,9 @@ class AutoMapper implements AutoMapperInterface /** * AutoMapper constructor. * - * @param AutoMapperConfigInterface $autoMapperConfig + * @param AutoMapperConfigInterface|null $autoMapperConfig */ - public function __construct(AutoMapperConfigInterface $autoMapperConfig = null) + public function __construct(?AutoMapperConfigInterface $autoMapperConfig = null) { $this->autoMapperConfig = $autoMapperConfig ?: new AutoMapperConfig(); } diff --git a/src/Configuration/AutoMapperConfig.php b/src/Configuration/AutoMapperConfig.php index 0badcac..a9ff3e8 100644 --- a/src/Configuration/AutoMapperConfig.php +++ b/src/Configuration/AutoMapperConfig.php @@ -22,9 +22,9 @@ class AutoMapperConfig implements AutoMapperConfigInterface /** * AutoMapperConfig constructor. * - * @param callable $configurator + * @param callable|null $configurator */ - public function __construct(callable $configurator = null) + public function __construct(?callable $configurator = null) { $this->options = Options::default(); if ($configurator !== null) {