1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Add a bunch of return types and fix type inconsistencies reports from phan

This commit is contained in:
Jordi Boggiano
2018-07-04 14:10:04 +02:00
parent e5900c3814
commit 06143b03e5
73 changed files with 227 additions and 280 deletions

View File

@@ -54,7 +54,7 @@ interface HandlerInterface
*
* @param array $records The records to handle (an array of record arrays)
*/
public function handleBatch(array $records);
public function handleBatch(array $records): void;
/**
* Closes the handler.
@@ -64,5 +64,5 @@ interface HandlerInterface
* Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage)
* and ideally handlers should be able to reopen themselves on handle() after they have been closed.
*/
public function close();
public function close(): void;
}