diff options
author | Remi Collet <remi@remirepo.net> | 2019-10-11 11:16:45 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-10-11 11:16:45 +0200 |
commit | 81746e329cc9e664d86825a426d0efa9470ad9ad (patch) | |
tree | e1507008cac7e96b56f828b756c3d6906e0f67f0 /170.patch | |
parent | c2a576129bbaee4a53d171ea7d0ef583921738e4 (diff) |
- update to 2.7.0
- add patch for PHP 7.4 from
https://github.com/Masterminds/html5-php/pull/170
Diffstat (limited to '170.patch')
-rw-r--r-- | 170.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/170.patch b/170.patch new file mode 100644 index 0000000..076b8d4 --- /dev/null +++ b/170.patch @@ -0,0 +1,23 @@ +From 70d36f21e9223cad511dbc149c299b1143d264e4 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 11 Oct 2019 10:30:57 +0200 +Subject: [PATCH] Fix Trying to access array offset on value of type null + +--- + test/HTML5/Parser/TokenizerTest.php | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php +index 153dd23..6c90686 100644 +--- a/test/HTML5/Parser/TokenizerTest.php ++++ b/test/HTML5/Parser/TokenizerTest.php +@@ -26,7 +26,8 @@ public function assertEventEquals($type, $expects, $event) + if (is_array($expects)) { + $this->assertEquals($expects, $event['data'], "Event $type should equal " . print_r($expects, true) . ': ' . print_r($event, true)); + } else { +- $this->assertEquals($expects, $event['data'][0], "Event $type should equal $expects: " . print_r($event, true)); ++ $d = (is_array($event['data']) ? $event['data'][0] : null); ++ $this->assertEquals($expects, $d, "Event $type should equal $expects: " . print_r($event, true)); + } + } + |