diff --git a/composer.json b/composer.json index 137e453..958300d 100644 --- a/composer.json +++ b/composer.json @@ -13,12 +13,12 @@ ], "require": { "php": "^7.4|^8.0", - "symfony/finder": "^4|^5|^6|^7", + "symfony/finder": "^4|^5|^6|^7|^8", "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^9|^10", - "symfony/var-dumper": "^4|^5|^6|^7" + "phpunit/phpunit": "^9|^10|^11|^12|^13", + "symfony/var-dumper": "^4|^5|^6|^7|^8" }, "autoload": { "psr-4": { diff --git a/src/CnbRates.php b/src/CnbRates.php index c247935..7c5c938 100644 --- a/src/CnbRates.php +++ b/src/CnbRates.php @@ -39,7 +39,7 @@ public function __construct(?string $cacheDir = null) $this->cacheDir = $cacheDir.'/defr'; } - public function getRates(DateTime $date = null): Rates + public function getRates(?DateTime $date = null): Rates { if (null === $date) { $date = new DateTime(); diff --git a/src/NameDaysAbstract.php b/src/NameDaysAbstract.php index 177492c..cbb1678 100644 --- a/src/NameDaysAbstract.php +++ b/src/NameDaysAbstract.php @@ -28,7 +28,7 @@ abstract class NameDaysAbstract * * @return string */ - public static function getNameDay(\DateTime $date = null) + public static function getNameDay(?\DateTime $date = null) { if (!$date) { $date = new \DateTime();