Permalink
Browse files

s/callback/callable/g

  • Loading branch information...
Seldaek committed Nov 4, 2012
1 parent 38bb472 commit 49143f3d115e7a4d077870f6e3e1443719e994ef
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Monolog/Handler/FingersCrossedHandler.php
  2. +2 −2 src/Monolog/Handler/SwiftMailerHandler.php
@@ -34,7 +34,7 @@ class FingersCrossedHandler extends AbstractHandler
protected $stopBuffering;
/**
- * @param callback|HandlerInterface $handler Handler or factory callback($record, $fingersCrossedHandler).
+ * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
* @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
* @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
@@ -25,7 +25,7 @@ class SwiftMailerHandler extends MailHandler
/**
* @param \Swift_Mailer $mailer The mailer to use
- * @param callback|\Swift_Message $message An example message for real messages, only the body will be replaced
+ * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
* @param integer $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
*/
@@ -37,7 +37,7 @@ public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ER
$message = call_user_func($message);
}
if (!$message instanceof \Swift_Message) {
- throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callback returning it');
+ throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it');
}
$this->message = $message;
}

0 comments on commit 49143f3

Please sign in to comment.