From be333c867a0ba0c1e2148714eee1aec91a254b4c Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 25 Feb 2019 11:56:16 +0100 Subject: [PATCH] Fix errors with `count()` on classes which implement the count method. These classes can be counted useing the `count` method, but in newer PHP versions it needs to implement the interface to work. --- src/FactorGraphs/FactorList.php | 6 ++++-- src/HashMap.php | 6 ++++-- src/RatingContainer.php | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/FactorGraphs/FactorList.php b/src/FactorGraphs/FactorList.php index 2a9a494..2f9585a 100644 --- a/src/FactorGraphs/FactorList.php +++ b/src/FactorGraphs/FactorList.php @@ -1,9 +1,11 @@ _list[] = $factor; return $factor; } -} \ No newline at end of file +} diff --git a/src/HashMap.php b/src/HashMap.php index a3f6971..9ae36fd 100644 --- a/src/HashMap.php +++ b/src/HashMap.php @@ -1,9 +1,11 @@