private function getComputedErrorsCount(): array
    {
        $errorCount = 0;

        if ($logger = $this->getDebugLogger()) {
            $errorCount = $logger->countErrors();
        }

        $count = [
            'error_count'       => $errorCount,
            'deprecation_count' => 0,
            'warning_count'     => 0,
            'scream_count'      => 0,
            'priorities'        => [],
        ];

        foreach ($this->getLogs() as $log) {
            if (isset($count['priorities'][$log['priority']])) {
                $count['priorities'][$log['priority']]['count']++;
            } else {
                $count['priorities'][$log['priority']] = [
                    'count' => 1,
                    'name'  => $log['priorityName'],
                ];
            }

            if ('WARNING' === $log['priorityName']) {
                $count['warning_count']++;
            }

            if ($this->isSilencedOrDeprecationErrorLog($log)) {
                if ($log['context']['exception'] instanceof SilencedErrorContext) {
                    $count['scream_count']++;
                } else {
                    $count['deprecation_count']++;
                }
            }
        }

        \ksort($count['priorities']);

        return $count;
    }
private function getComputedErrorsCount(): array
    {
        $errorCount = 0;

        if ($logger = $this->getDebugLogger()) {
            $errorCount = $logger->countErrors();
        }

        $count = [
            'error_count'       => $errorCount,
            'deprecation_count' => 0,
            'warning_count'     => 0,
            'scream_count'      => 0,
            'priorities'        => [],
        ];

        foreach ($this->getLogs() as $log) {
            if (isset($count['priorities'][$log['priority']])) {
                $count['priorities'][$log['priority']]['count']++;
            } else {
                $count['priorities'][$log['priority']] = [
                    'count' => 1,
                    'name'  => $log['priorityName'],
                ];
            }

            if ('WARNING' === $log['priorityName']) {
                $count['warning_count']++;
            }

            if ($this->isSilencedOrDeprecationErrorLog($log)) {
                if ($log['context']['exception'] instanceof SilencedErrorContext) {
                    $count['scream_count']++;
                } else {
                    $count['deprecation_count']++;
                }
            }
        }

        \ksort($count['priorities']);

        return $count;
    }
private function getComputedErrorsCount ( ) : array { $ errorCount = 0 ; if ( $ logger = $ this -> getDebugLogger ( ) ) { $ errorCount = $ logger -> countErrors ( ) ; } $ count = [ 'error_count' => $ errorCount , 'deprecation_count' => 0 , 'warning_count' => 0 , 'scream_count' => 0 , 'priorities' => [ ] , ] ; foreach ( $ this -> getLogs ( ) as $ log ) { if ( isset ( $ count [ 'priorities' ] [ $ log [ 'priority' ] ] ) ) { $ count [ 'priorities' ] [ $ log [ 'priority' ] ] [ 'count' ] ++ ; } else { $ count [ 'priorities' ] [ $ log [ 'priority' ] ] = [ 'count' => 1 , 'name' => $ log [ 'priorityName' ] , ] ; } if ( 'WARNING' === $ log [ 'priorityName' ] ) { $ count [ 'warning_count' ] ++ ; } if ( $ this -> isSilencedOrDeprecationErrorLog ( $ log ) ) { if ( $ log [ 'context' ] [ 'exception' ] instanceof SilencedErrorContext ) { $ count [ 'scream_count' ] ++ ; } else { $ count [ 'deprecation_count' ] ++ ; } } } \ ksort ( $ count [ 'priorities' ] ) ; return $ count ; }
Get computed log error levels.

@return array
Get computed log error levels .