diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 3865a3c..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: gustavofreze \ No newline at end of file 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 19f707c..42ae0c1 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ } }, "require": { - "php": "^8.1" + "php": "^8.1||^8.2" }, "require-dev": { "infection/infection": "^0.26", diff --git a/src/Internal/Exceptions/InvalidProperty.php b/src/Internal/Exceptions/InvalidProperty.php index cfe4d7c..e4984e1 100644 --- a/src/Internal/Exceptions/InvalidProperty.php +++ b/src/Internal/Exceptions/InvalidProperty.php @@ -9,6 +9,6 @@ final class InvalidProperty extends RuntimeException public function __construct(string $key, string $class) { $template = 'Invalid property <%s> for class <%s>.'; - parent::__construct(sprintf($template, $key, $class)); + parent::__construct(message: sprintf($template, $key, $class)); } } diff --git a/src/Internal/Exceptions/PropertyCannotBeChanged.php b/src/Internal/Exceptions/PropertyCannotBeChanged.php index 860d1fd..6ceba0d 100644 --- a/src/Internal/Exceptions/PropertyCannotBeChanged.php +++ b/src/Internal/Exceptions/PropertyCannotBeChanged.php @@ -9,6 +9,6 @@ final class PropertyCannotBeChanged extends RuntimeException public function __construct(string $key, string $class) { $template = 'Property <%s> cannot be changed in class <%s>.'; - parent::__construct(sprintf($template, $key, $class)); + parent::__construct(message: sprintf($template, $key, $class)); } } diff --git a/src/Internal/Exceptions/PropertyCannotBeDeactivated.php b/src/Internal/Exceptions/PropertyCannotBeDeactivated.php index 7d90457..6b02f07 100644 --- a/src/Internal/Exceptions/PropertyCannotBeDeactivated.php +++ b/src/Internal/Exceptions/PropertyCannotBeDeactivated.php @@ -9,6 +9,6 @@ final class PropertyCannotBeDeactivated extends RuntimeException public function __construct(string $key, string $class) { $template = 'Property <%s> cannot be deactivated in class <%s>.'; - parent::__construct(sprintf($template, $key, $class)); + parent::__construct(message: sprintf($template, $key, $class)); } }