Fix return type

This commit is contained in:
Dennis Eichhorn 2017-11-11 14:06:41 +01:00
parent ed275f9c34
commit d954957fe3

View File

@ -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');