1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Added some methods in the HandlerInterface and some typehints

This commit is contained in:
Christophe Coevoet
2011-03-19 23:07:44 +01:00
parent fb503eebf2
commit 3a3c96d6d7
6 changed files with 56 additions and 14 deletions

View File

@@ -53,7 +53,7 @@ class FingersCrossedHandler extends AbstractHandler
* @param array $record Records
* @return Boolean Whether the record was handled
*/
public function handle($record)
public function handle(array $record)
{
if ($this->buffering) {
$this->buffer[] = $record;
@@ -85,10 +85,10 @@ class FingersCrossedHandler extends AbstractHandler
}
/**
* Implemented to comply with the AbstractHandler rqeuirements. Can not be called.
* Implemented to comply with the AbstractHandler requirements. Can not be called.
*/
public function write($record)
public function write(array $record)
{
throw new \LogicException('This method should not be called directly on the FingersCrossedHandler.');
throw new \BadMethodCallException('This method should not be called directly on the FingersCrossedHandler.');
}
}