mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +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
@@ -109,12 +109,8 @@ class TestHandler extends AbstractProcessingHandler
|
||||
}, $level);
|
||||
}
|
||||
|
||||
public function hasRecordThatPasses($predicate, $level)
|
||||
public function hasRecordThatPasses(callable $predicate, $level)
|
||||
{
|
||||
if (!is_callable($predicate)) {
|
||||
throw new \InvalidArgumentException("Expected a callable for hasRecordThatPasses");
|
||||
}
|
||||
|
||||
if (!isset($this->recordsByLevel[$level])) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user