diff options
Diffstat (limited to '303.patch')
-rw-r--r-- | 303.patch | 23 |
1 files changed, 23 insertions, 0 deletions
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 <remi@remirepo.net> +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. |