summaryrefslogtreecommitdiffstats
path: root/php-justinrainbow-json-schema-pr292.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-justinrainbow-json-schema-pr292.patch')
-rw-r--r--php-justinrainbow-json-schema-pr292.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/php-justinrainbow-json-schema-pr292.patch b/php-justinrainbow-json-schema-pr292.patch
new file mode 100644
index 0000000..80e17db
--- /dev/null
+++ b/php-justinrainbow-json-schema-pr292.patch
@@ -0,0 +1,25 @@
+Adapted from v2.0.5 from:
+
+
+From 14c9472c2ba0c8fdd5d99dc634f4db976d51237f Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora@famillecollet.com>
+Date: Thu, 21 Jul 2016 18:37:10 +0200
+Subject: [PATCH] Fix #291 failed tests with lestest PHP
+
+Since 5.6.24, 7.0.9, 7.1.0beta1, negative timestamps are valid.
+---
+ tests/Constraints/FormatTest.php | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/Constraints/FormatTest.php b/tests/Constraints/FormatTest.php
+index f604c08..3ffe5b1 100644
+--- a/tests/Constraints/FormatTest.php
++++ b/tests/Constraints/FormatTest.php
+@@ -141,7 +141,6 @@ class FormatTest extends BaseTestCase
+ array('1999-01-11T00:00:00+100', 'date-time'),
+ array('1999-01-11T00:00:00+1:00', 'date-time'),
+
+- array('-1', 'utc-millisec'),
+ array(PHP_INT_MAX, 'utc-millisec'),
+
+ array('grey', 'color'),