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.