diff options
-rw-r--r-- | 554.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/554.patch b/554.patch deleted file mode 100644 index 2869666..0000000 --- a/554.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 71d0493b6817352134317f504eb55e8ce7c7f669 Mon Sep 17 00:00:00 2001 -From: Remi Collet <remi@remirepo.net> -Date: Fri, 3 Nov 2017 13:55:50 +0100 -Subject: [PATCH] Fix count(): Parameter must be an array or an object that - implements Countable - ---- - src/Report/Html/Renderer/File.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/Report/Html/Renderer/File.php b/src/Report/Html/Renderer/File.php -index 8f2c929b..975bc0a0 100644 ---- a/src/Report/Html/Renderer/File.php -+++ b/src/Report/Html/Renderer/File.php -@@ -304,7 +304,7 @@ protected function renderSource(FileNode $node) - $popoverTitle = ''; - - if (array_key_exists($i, $coverageData)) { -- $numTests = count($coverageData[$i]); -+ $numTests = ($coverageData[$i] ? count($coverageData[$i]) : 0); - - if ($coverageData[$i] === null) { - $trClass = ' class="warning"'; |