diff --git a/composer.json b/composer.json index 766a51f..be9a658 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ } }, "require-dev": { - "assoconnect/php-quality-config": "^2" + "assoconnect/php-quality-config": "^2.2" }, "require": { "php": "^8.3", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 797f2d1..ec76bf9 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,13 @@ - - - - ./src - - + ./tests/ + + + ./src + + diff --git a/src/Normalizer/AbsolutePercentValueNormalizer.php b/src/Normalizer/AbsolutePercentValueNormalizer.php index 235caba..a601ab3 100644 --- a/src/Normalizer/AbsolutePercentValueNormalizer.php +++ b/src/Normalizer/AbsolutePercentValueNormalizer.php @@ -59,7 +59,7 @@ public function denormalize( } try { - return new AbsolutePercentValue($data['type'], $data['value']); + return new AbsolutePercentValue($data['type'] ?? null, $data['value'] ?? null); } catch (Throwable $e) { throw new UnexpectedValueException(previous: $e); }