mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 18:16:10 +02:00
Use callable typehint where possible + Removed dead code (#996)
* Removed dead code * Use callable typehint where possible * Removed PHP5.3 workaround
This commit is contained in:
committed by
Jordi Boggiano
parent
91a0f40927
commit
5a041bab8f
@@ -28,9 +28,6 @@ trait ProcessableHandlerTrait
|
||||
*/
|
||||
public function pushProcessor(callable $callback): HandlerInterface
|
||||
{
|
||||
if (!is_callable($callback)) {
|
||||
throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given');
|
||||
}
|
||||
array_unshift($this->processors, $callback);
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user