Skip to content
Browse files

Changed formatter handling like it is done in MongoDB Writer

  • Loading branch information...
1 parent 19f2be8 commit 92385ef169c2aeeff34e7a3a82fc34fcea0929b8 @stefankleff committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 library/Zend/Log/Writer/FingersCrossed.php
View
6 library/Zend/Log/Writer/FingersCrossed.php
@@ -148,11 +148,13 @@ public function reset()
* Stub in accordance to parent method signature.
* Fomatters must be set on the wrapped writer.
*
- * @param Formatter $formatter
+ * @param Zend\Log\Formatter\FormatterInterface $formatter
+ * @return void
+ * @throws Zend\Log\Exception\InvalidArgumentException
*/
public function setFormatter(FormatterInterface $formatter)
{
- return $this->writer;
+ throw new InvalidArgumentException(get_class() . ' does not support formatting');
}
/**

0 comments on commit 92385ef

Please sign in to comment.
Something went wrong with that request. Please try again.