diff --git a/CHANGELOG.md b/CHANGELOG.md index 99726be8..7f7db619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add ext-json to composer.json to ensure JSON extension available ([#759](https://github.com/jsonrainbow/json-schema/pull/759)) - Add visibility modifiers to class constants ([#757](https://github.com/jsonrainbow/json-schema/pull/757)) - Include PHP 8.4 in workflow ([#765](https://github.com/jsonrainbow/json-schema/pull/765)) +- Add `strict_types=1` to all classes in ./src ([#758](https://github.com/jsonrainbow/json-schema/pull/758)) ## [6.0.0] - 2024-07-30 ### Added diff --git a/src/JsonSchema/ConstraintError.php b/src/JsonSchema/ConstraintError.php index ac7358a1..8b1c1450 100644 --- a/src/JsonSchema/ConstraintError.php +++ b/src/JsonSchema/ConstraintError.php @@ -1,5 +1,7 @@ propertyPaths = $propertyPaths; + $new->propertyPaths = array_map(function ($p): string { return (string) $p; }, $propertyPaths); return $new; } diff --git a/src/JsonSchema/Enum.php b/src/JsonSchema/Enum.php index c52f8daa..ef8cb285 100644 --- a/src/JsonSchema/Enum.php +++ b/src/JsonSchema/Enum.php @@ -1,5 +1,7 @@