Skip to content

Commit d28acac

Browse files
Fix support for 32bits PHP
Fix #816
1 parent 16b274c commit d28acac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JsonSchema/Validator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class Validator extends BaseConstraint
2727
{
2828
public const SCHEMA_MEDIA_TYPE = 'application/schema+json';
2929

30-
public const ERROR_NONE = 0x00000000;
31-
public const ERROR_ALL = 0xFFFFFFFF;
32-
public const ERROR_DOCUMENT_VALIDATION = 0x00000001;
33-
public const ERROR_SCHEMA_VALIDATION = 0x00000002;
30+
public const ERROR_NONE = 0;
31+
public const ERROR_ALL = -1;
32+
public const ERROR_DOCUMENT_VALIDATION = 1;
33+
public const ERROR_SCHEMA_VALIDATION = 2;
3434

3535
/**
3636
* Validates the given data against the schema and returns an object containing the results

0 commit comments

Comments
 (0)