mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-03-31 19:08:41 +00:00
Fix return type
This commit is contained in:
parent
ed275f9c34
commit
d954957fe3
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user