Skip to content

Commit

Permalink
Merge pull request #88 from andrew-demb/php8.4
Browse files Browse the repository at this point in the history
[#87] Fix PHP 8.4 deprecations
  • Loading branch information
mark-gerarts authored Nov 25, 2024
2 parents 2c14575 + 7f9409b commit 699cb7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AutoMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration/AutoMapperConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 699cb7b

Please sign in to comment.