From d954957fe35ddeb81184211703fc5aeaec091c8a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Nov 2017 14:06:41 +0100 Subject: [PATCH] Fix return type --- Log/FileLogger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Log/FileLogger.php b/Log/FileLogger.php index e52d8bbe6..ba105f44f 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -483,12 +483,12 @@ class FileLogger implements LoggerInterface * * @return array */ - public function getHighestPerpetrator(int $limit = 10) + public function getHighestPerpetrator(int $limit = 10) : array { $connection = []; if (!file_exists($this->path)) { - return 0; + return $connection; } $this->fp = fopen($this->path, 'r');