summaryrefslogtreecommitdiffstats
path: root/303.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-05-16 12:11:25 +0200
committerRemi Collet <remi@remirepo.net>2017-05-16 12:11:25 +0200
commit28768db71dba3a4004849a278a6984a365cfd2e3 (patch)
treec0f3c86ff56cfb60c5efc78b9e8dfbf4a55e05a6 /303.patch
parentafd68e19db6deeb3149d4e661d1cb9cefb4cb780 (diff)
fix for 7.2
Diffstat (limited to '303.patch')
-rw-r--r--303.patch23
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.