From 28768db71dba3a4004849a278a6984a365cfd2e3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 May 2017 12:11:25 +0200 Subject: fix for 7.2 --- 303.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 303.patch (limited to '303.patch') diff --git a/303.patch b/303.patch new file mode 100644 index 0000000..a3e0687 --- /dev/null +++ b/303.patch @@ -0,0 +1,23 @@ +From c1b369a621c826c10dbad4c60e67fbd07e12cccd Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 16 May 2017 11:57:30 +0200 +Subject: [PATCH] fix count(): Parameter must be an array or an object that + implements Countable (php 7.2) + +--- + src/main/php/PDepend/Metrics/Analyzer/InheritanceAnalyzer.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/php/PDepend/Metrics/Analyzer/InheritanceAnalyzer.php b/src/main/php/PDepend/Metrics/Analyzer/InheritanceAnalyzer.php +index 03c0d6f..7b2aa8b 100644 +--- a/src/main/php/PDepend/Metrics/Analyzer/InheritanceAnalyzer.php ++++ b/src/main/php/PDepend/Metrics/Analyzer/InheritanceAnalyzer.php +@@ -86,7 +86,7 @@ class InheritanceAnalyzer extends AbstractAnalyzer implements + * + * @var array(integer) + */ +- private $rootClasses = null; ++ private $rootClasses = array(); + + /** + * The maximum depth of inheritance tree value within the analyzed source code. -- cgit