mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Switch from instanceof to method_exists.
This change lets custom loggers implement scopes without inheriting from BaseLog.
This commit is contained in:
parent
3b02013f7d
commit
a6441d7381
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ class CakeLog {
|
|||
foreach (self::$_Collection->enabled() as $streamName) {
|
||||
$logger = self::$_Collection->{$streamName};
|
||||
$types = $scopes = $config = array();
|
||||
if ($logger instanceof BaseLog) {
|
||||
if (method_exists($logger, 'config')) {
|
||||
$config = $logger->config();
|
||||
}
|
||||
if (isset($config['types'])) {
|
||||
|
|
Loading…
Reference in a new issue