summaryrefslogtreecommitdiffstats
path: root/303.patch
blob: a3e068756133d3d225b3c6d547acd63e638f3b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.