diff --git a/CHANGELOG.md b/CHANGELOG.md index 68244d7c..0d8cfe99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Fix support for 32bits PHP ([#817](https://github.com/jsonrainbow/json-schema/pull/817)) ## [6.4.0] - 2025-04-01 ### Added diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index d708b079..7e4ba4a4 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -25,6 +25,11 @@ parameters: count: 1 path: src/JsonSchema/Constraints/BaseConstraint.php + - + message: "#^Property JsonSchema\\\\Constraints\\\\BaseConstraint\\:\\:\\$errorMask \\(int\\<\\-1, 3\\>\\) does not accept int\\.$#" + count: 1 + path: src/JsonSchema/Constraints/BaseConstraint.php + - message: "#^Property JsonSchema\\\\Constraints\\\\BaseConstraint\\:\\:\\$errors type has no value type specified in iterable type array\\.$#" count: 1 diff --git a/src/JsonSchema/Validator.php b/src/JsonSchema/Validator.php index d8c83876..0845b0cb 100644 --- a/src/JsonSchema/Validator.php +++ b/src/JsonSchema/Validator.php @@ -27,10 +27,10 @@ class Validator extends BaseConstraint { public const SCHEMA_MEDIA_TYPE = 'application/schema+json'; - public const ERROR_NONE = 0x00000000; - public const ERROR_ALL = 0xFFFFFFFF; - public const ERROR_DOCUMENT_VALIDATION = 0x00000001; - public const ERROR_SCHEMA_VALIDATION = 0x00000002; + public const ERROR_NONE = 0; + public const ERROR_ALL = -1; + public const ERROR_DOCUMENT_VALIDATION = 1; + public const ERROR_SCHEMA_VALIDATION = 2; /** * Validates the given data against the schema and returns an object containing the results