diff --git a/Makefile b/Makefile index 00764c8..3a04a19 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DOCKER_RUN = docker run --rm -it --net=host -v ${PWD}:/app -w /app gustavofreze/php:8.1.7 +DOCKER_RUN = docker run --rm -it --net=host -v ${PWD}:/app -w /app gustavofreze/php:8.2.6 .PHONY: configure test test-no-coverage review show-reports clean diff --git a/composer.json b/composer.json index d8924aa..e1faa77 100644 --- a/composer.json +++ b/composer.json @@ -38,8 +38,8 @@ } }, "require": { - "php": "^8.1", - "tiny-blocks/value-object": "^1.0" + "php": "^8.1||^8.2", + "tiny-blocks/value-object": "^2.0" }, "require-dev": { "infection/infection": "^0.26", diff --git a/src/Internal/Exceptions/EmptyCountryName.php b/src/Internal/Exceptions/EmptyCountryName.php index 378c687..c72cc98 100644 --- a/src/Internal/Exceptions/EmptyCountryName.php +++ b/src/Internal/Exceptions/EmptyCountryName.php @@ -8,6 +8,6 @@ final class EmptyCountryName extends RuntimeException { public function __construct() { - parent::__construct('Country name cannot be empty.'); + parent::__construct(message: 'Country name cannot be empty.'); } } diff --git a/src/Internal/Exceptions/InvalidAlphaCode.php b/src/Internal/Exceptions/InvalidAlphaCode.php index ec5e178..46f3fe3 100644 --- a/src/Internal/Exceptions/InvalidAlphaCode.php +++ b/src/Internal/Exceptions/InvalidAlphaCode.php @@ -9,6 +9,6 @@ final class InvalidAlphaCode extends RuntimeException public function __construct(string $alphaCode) { $template = 'Alpha code <%s> is invalid.'; - parent::__construct(sprintf($template, $alphaCode)); + parent::__construct(message: sprintf($template, $alphaCode)); } } diff --git a/src/Internal/Exceptions/InvalidAlphaCodeImplementation.php b/src/Internal/Exceptions/InvalidAlphaCodeImplementation.php index 15650e9..6bac974 100644 --- a/src/Internal/Exceptions/InvalidAlphaCodeImplementation.php +++ b/src/Internal/Exceptions/InvalidAlphaCodeImplementation.php @@ -9,6 +9,6 @@ final class InvalidAlphaCodeImplementation extends RuntimeException public function __construct(string $class) { $template = 'The alpha code implementation <%s> is invalid.'; - parent::__construct(sprintf($template, $class)); + parent::__construct(message: sprintf($template, $class)); } }