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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user