• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codeigniter4 / CodeIgniter4 / 8677009716

13 Apr 2024 11:45PM UTC coverage: 84.44% (-2.2%) from 86.607%
8677009716

push

github

web-flow
Merge pull request #8776 from kenjis/fix-findQualifiedNameFromPath-Cannot-declare-class-v3

fix: Cannot declare class CodeIgniter\Config\Services, because the name is already in use

0 of 3 new or added lines in 1 file covered. (0.0%)

478 existing lines in 72 files now uncovered.

20318 of 24062 relevant lines covered (84.44%)

188.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

44.44
/system/Debug/Exceptions.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter 4 framework.
7
 *
8
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace CodeIgniter\Debug;
15

16
use CodeIgniter\API\ResponseTrait;
17
use CodeIgniter\Exceptions\HasExitCodeInterface;
18
use CodeIgniter\Exceptions\HTTPExceptionInterface;
19
use CodeIgniter\Exceptions\PageNotFoundException;
20
use CodeIgniter\HTTP\Exceptions\HTTPException;
21
use CodeIgniter\HTTP\RequestInterface;
22
use CodeIgniter\HTTP\ResponseInterface;
23
use Config\Exceptions as ExceptionsConfig;
24
use Config\Paths;
25
use Config\Services;
26
use ErrorException;
27
use Psr\Log\LogLevel;
28
use Throwable;
29

30
/**
31
 * Exceptions manager
32
 *
33
 * @see \CodeIgniter\Debug\ExceptionsTest
34
 */
35
class Exceptions
36
{
37
    use ResponseTrait;
38

39
    /**
40
     * Nesting level of the output buffering mechanism
41
     *
42
     * @var int
43
     *
44
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
45
     */
46
    public $ob_level;
47

48
    /**
49
     * The path to the directory containing the
50
     * cli and html error view directories.
51
     *
52
     * @var string
53
     *
54
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
55
     */
56
    protected $viewPath;
57

58
    /**
59
     * Config for debug exceptions.
60
     *
61
     * @var ExceptionsConfig
62
     */
63
    protected $config;
64

65
    /**
66
     * The request.
67
     *
68
     * @var RequestInterface|null
69
     */
70
    protected $request;
71

72
    /**
73
     * The outgoing response.
74
     *
75
     * @var ResponseInterface
76
     */
77
    protected $response;
78

79
    private ?Throwable $exceptionCaughtByExceptionHandler = null;
80

81
    public function __construct(ExceptionsConfig $config)
82
    {
83
        // For backward compatibility
84
        $this->ob_level = ob_get_level();
12✔
85
        $this->viewPath = rtrim($config->errorViewPath, '\\/ ') . DIRECTORY_SEPARATOR;
12✔
86

87
        $this->config = $config;
12✔
88

89
        // workaround for upgraded users
90
        // This causes "Deprecated: Creation of dynamic property" in PHP 8.2.
91
        // @TODO remove this after dropping PHP 8.1 support.
92
        if (! isset($this->config->sensitiveDataInTrace)) {
12✔
93
            $this->config->sensitiveDataInTrace = [];
×
94
        }
95
        if (! isset($this->config->logDeprecations, $this->config->deprecationLogLevel)) {
12✔
96
            $this->config->logDeprecations     = false;
×
97
            $this->config->deprecationLogLevel = LogLevel::WARNING;
×
98
        }
99
    }
100

101
    /**
102
     * Responsible for registering the error, exception and shutdown
103
     * handling of our application.
104
     *
105
     * @codeCoverageIgnore
106
     *
107
     * @return void
108
     */
109
    public function initialize()
110
    {
111
        set_exception_handler($this->exceptionHandler(...));
3✔
112
        set_error_handler($this->errorHandler(...));
3✔
113
        register_shutdown_function([$this, 'shutdownHandler']);
3✔
114
    }
115

116
    /**
117
     * Catches any uncaught errors and exceptions, including most Fatal errors
118
     * (Yay PHP7!). Will log the error, display it if display_errors is on,
119
     * and fire an event that allows custom actions to be taken at this point.
120
     *
121
     * @return void
122
     */
123
    public function exceptionHandler(Throwable $exception)
124
    {
125
        $this->exceptionCaughtByExceptionHandler = $exception;
×
126

127
        [$statusCode, $exitCode] = $this->determineCodes($exception);
×
128

129
        $this->request = Services::request();
×
130

131
        if ($this->config->log === true && ! in_array($statusCode, $this->config->ignoreCodes, true)) {
×
132
            $uri       = $this->request->getPath() === '' ? '/' : $this->request->getPath();
×
133
            $routeInfo = '[Method: ' . $this->request->getMethod() . ', Route: ' . $uri . ']';
×
134

135
            log_message('critical', $exception::class . ": {message}\n{routeInfo}\nin {exFile} on line {exLine}.\n{trace}", [
×
136
                'message'   => $exception->getMessage(),
×
137
                'routeInfo' => $routeInfo,
×
138
                'exFile'    => clean_path($exception->getFile()), // {file} refers to THIS file
×
139
                'exLine'    => $exception->getLine(), // {line} refers to THIS line
×
140
                'trace'     => self::renderBacktrace($exception->getTrace()),
×
141
            ]);
×
142

143
            // Get the first exception.
144
            $last = $exception;
×
145

146
            while ($prevException = $last->getPrevious()) {
×
147
                $last = $prevException;
×
148

149
                log_message('critical', '[Caused by] ' . $prevException::class . ": {message}\nin {exFile} on line {exLine}.\n{trace}", [
×
150
                    'message' => $prevException->getMessage(),
×
151
                    'exFile'  => clean_path($prevException->getFile()), // {file} refers to THIS file
×
152
                    'exLine'  => $prevException->getLine(), // {line} refers to THIS line
×
153
                    'trace'   => self::renderBacktrace($prevException->getTrace()),
×
154
                ]);
×
155
            }
156
        }
157

158
        $this->response = Services::response();
×
159

160
        if (method_exists($this->config, 'handler')) {
×
161
            // Use new ExceptionHandler
162
            $handler = $this->config->handler($statusCode, $exception);
×
163
            $handler->handle(
×
164
                $exception,
×
165
                $this->request,
×
166
                $this->response,
×
167
                $statusCode,
×
168
                $exitCode
×
169
            );
×
170

171
            return;
×
172
        }
173

174
        // For backward compatibility
175
        if (! is_cli()) {
×
176
            try {
177
                $this->response->setStatusCode($statusCode);
×
178
            } catch (HTTPException) {
×
179
                // Workaround for invalid HTTP status code.
180
                $statusCode = 500;
×
181
                $this->response->setStatusCode($statusCode);
×
182
            }
183

184
            if (! headers_sent()) {
×
185
                header(sprintf('HTTP/%s %s %s', $this->request->getProtocolVersion(), $this->response->getStatusCode(), $this->response->getReasonPhrase()), true, $statusCode);
×
186
            }
187

188
            if (! str_contains($this->request->getHeaderLine('accept'), 'text/html')) {
×
189
                $this->respond(ENVIRONMENT === 'development' ? $this->collectVars($exception, $statusCode) : '', $statusCode)->send();
×
190

191
                exit($exitCode);
×
192
            }
193
        }
194

195
        $this->render($exception, $statusCode);
×
196

197
        exit($exitCode);
×
198
    }
199

200
    /**
201
     * The callback to be registered to `set_error_handler()`.
202
     *
203
     * @return bool
204
     *
205
     * @throws ErrorException
206
     *
207
     * @codeCoverageIgnore
208
     */
209
    public function errorHandler(int $severity, string $message, ?string $file = null, ?int $line = null)
210
    {
211
        if ($this->isDeprecationError($severity)) {
73✔
212
            if (! $this->config->logDeprecations || (bool) env('CODEIGNITER_SCREAM_DEPRECATIONS')) {
2✔
UNCOV
213
                throw new ErrorException($message, 0, $severity, $file, $line);
×
214
            }
215

216
            return $this->handleDeprecationError($message, $file, $line);
2✔
217
        }
218

219
        if ((error_reporting() & $severity) !== 0) {
71✔
220
            throw new ErrorException($message, 0, $severity, $file, $line);
41✔
221
        }
222

223
        return false; // return false to propagate the error to PHP standard error handler
30✔
224
    }
225

226
    /**
227
     * Checks to see if any errors have happened during shutdown that
228
     * need to be caught and handle them.
229
     *
230
     * @codeCoverageIgnore
231
     *
232
     * @return void
233
     */
234
    public function shutdownHandler()
235
    {
UNCOV
236
        $error = error_get_last();
×
237

UNCOV
238
        if ($error === null) {
×
UNCOV
239
            return;
×
240
        }
241

UNCOV
242
        ['type' => $type, 'message' => $message, 'file' => $file, 'line' => $line] = $error;
×
243

UNCOV
244
        if ($this->exceptionCaughtByExceptionHandler instanceof Throwable) {
×
UNCOV
245
            $message .= "\n【Previous Exception】\n"
×
UNCOV
246
                . $this->exceptionCaughtByExceptionHandler::class . "\n"
×
UNCOV
247
                . $this->exceptionCaughtByExceptionHandler->getMessage() . "\n"
×
UNCOV
248
                . $this->exceptionCaughtByExceptionHandler->getTraceAsString();
×
249
        }
250

UNCOV
251
        if (in_array($type, [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE], true)) {
×
UNCOV
252
            $this->exceptionHandler(new ErrorException($message, 0, $type, $file, $line));
×
253
        }
254
    }
255

256
    /**
257
     * Determines the view to display based on the exception thrown,
258
     * whether an HTTP or CLI request, etc.
259
     *
260
     * @return string The path and filename of the view file to use
261
     *
262
     * @deprecated 4.4.0 No longer used. Moved to ExceptionHandler.
263
     */
264
    protected function determineView(Throwable $exception, string $templatePath): string
265
    {
266
        // Production environments should have a custom exception file.
267
        $view         = 'production.php';
1✔
268
        $templatePath = rtrim($templatePath, '\\/ ') . DIRECTORY_SEPARATOR;
1✔
269

270
        if (
271
            in_array(
1✔
272
                strtolower(ini_get('display_errors')),
1✔
273
                ['1', 'true', 'on', 'yes'],
1✔
274
                true
1✔
275
            )
1✔
276
        ) {
277
            $view = 'error_exception.php';
1✔
278
        }
279

280
        // 404 Errors
281
        if ($exception instanceof PageNotFoundException) {
1✔
282
            return 'error_404.php';
1✔
283
        }
284

285
        // Allow for custom views based upon the status code
286
        if (is_file($templatePath . 'error_' . $exception->getCode() . '.php')) {
1✔
287
            return 'error_' . $exception->getCode() . '.php';
1✔
288
        }
289

290
        return $view;
1✔
291
    }
292

293
    /**
294
     * Given an exception and status code will display the error to the client.
295
     *
296
     * @return void
297
     *
298
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
299
     */
300
    protected function render(Throwable $exception, int $statusCode)
301
    {
302
        // Determine possible directories of error views
UNCOV
303
        $path    = $this->viewPath;
×
UNCOV
304
        $altPath = rtrim((new Paths())->viewDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'errors' . DIRECTORY_SEPARATOR;
×
305

UNCOV
306
        $path    .= (is_cli() ? 'cli' : 'html') . DIRECTORY_SEPARATOR;
×
UNCOV
307
        $altPath .= (is_cli() ? 'cli' : 'html') . DIRECTORY_SEPARATOR;
×
308

309
        // Determine the views
UNCOV
310
        $view    = $this->determineView($exception, $path);
×
UNCOV
311
        $altView = $this->determineView($exception, $altPath);
×
312

313
        // Check if the view exists
UNCOV
314
        if (is_file($path . $view)) {
×
UNCOV
315
            $viewFile = $path . $view;
×
UNCOV
316
        } elseif (is_file($altPath . $altView)) {
×
UNCOV
317
            $viewFile = $altPath . $altView;
×
318
        }
319

UNCOV
320
        if (! isset($viewFile)) {
×
UNCOV
321
            echo 'The error view files were not found. Cannot render exception trace.';
×
322

UNCOV
323
            exit(1);
×
324
        }
325

UNCOV
326
        echo (function () use ($exception, $statusCode, $viewFile): string {
×
UNCOV
327
            $vars = $this->collectVars($exception, $statusCode);
×
UNCOV
328
            extract($vars, EXTR_SKIP);
×
329

UNCOV
330
            ob_start();
×
UNCOV
331
            include $viewFile;
×
332

UNCOV
333
            return ob_get_clean();
×
UNCOV
334
        })();
×
335
    }
336

337
    /**
338
     * Gathers the variables that will be made available to the view.
339
     *
340
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
341
     */
342
    protected function collectVars(Throwable $exception, int $statusCode): array
343
    {
344
        // Get the first exception.
345
        $firstException = $exception;
1✔
346

347
        while ($prevException = $firstException->getPrevious()) {
1✔
UNCOV
348
            $firstException = $prevException;
×
349
        }
350

351
        $trace = $firstException->getTrace();
1✔
352

353
        if ($this->config->sensitiveDataInTrace !== []) {
1✔
UNCOV
354
            $trace = $this->maskSensitiveData($trace, $this->config->sensitiveDataInTrace);
×
355
        }
356

357
        return [
1✔
358
            'title'   => $exception::class,
1✔
359
            'type'    => $exception::class,
1✔
360
            'code'    => $statusCode,
1✔
361
            'message' => $exception->getMessage(),
1✔
362
            'file'    => $exception->getFile(),
1✔
363
            'line'    => $exception->getLine(),
1✔
364
            'trace'   => $trace,
1✔
365
        ];
1✔
366
    }
367

368
    /**
369
     * Mask sensitive data in the trace.
370
     *
371
     * @param array $trace
372
     *
373
     * @return array
374
     *
375
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
376
     */
377
    protected function maskSensitiveData($trace, array $keysToMask, string $path = '')
378
    {
379
        foreach ($trace as $i => $line) {
2✔
380
            $trace[$i]['args'] = $this->maskData($line['args'], $keysToMask);
2✔
381
        }
382

383
        return $trace;
2✔
384
    }
385

386
    /**
387
     * @param array|object $args
388
     *
389
     * @return array|object
390
     *
391
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
392
     */
393
    private function maskData($args, array $keysToMask, string $path = '')
394
    {
395
        foreach ($keysToMask as $keyToMask) {
2✔
396
            $explode = explode('/', $keyToMask);
2✔
397
            $index   = end($explode);
2✔
398

399
            if (str_starts_with(strrev($path . '/' . $index), strrev($keyToMask))) {
2✔
400
                if (is_array($args) && array_key_exists($index, $args)) {
2✔
401
                    $args[$index] = '******************';
1✔
402
                } elseif (
403
                    is_object($args) && property_exists($args, $index)
2✔
404
                    && isset($args->{$index}) && is_scalar($args->{$index})
2✔
405
                ) {
406
                    $args->{$index} = '******************';
1✔
407
                }
408
            }
409
        }
410

411
        if (is_array($args)) {
2✔
412
            foreach ($args as $pathKey => $subarray) {
2✔
413
                $args[$pathKey] = $this->maskData($subarray, $keysToMask, $path . '/' . $pathKey);
1✔
414
            }
415
        } elseif (is_object($args)) {
1✔
416
            foreach ($args as $pathKey => $subarray) {
1✔
417
                $args->{$pathKey} = $this->maskData($subarray, $keysToMask, $path . '/' . $pathKey);
1✔
418
            }
419
        }
420

421
        return $args;
2✔
422
    }
423

424
    /**
425
     * Determines the HTTP status code and the exit status code for this request.
426
     */
427
    protected function determineCodes(Throwable $exception): array
428
    {
429
        $statusCode = 500;
1✔
430
        $exitStatus = EXIT_ERROR;
1✔
431

432
        if ($exception instanceof HTTPExceptionInterface) {
1✔
433
            $statusCode = $exception->getCode();
×
434
        }
435

436
        if ($exception instanceof HasExitCodeInterface) {
1✔
437
            $exitStatus = $exception->getExitCode();
1✔
438
        }
439

440
        return [$statusCode, $exitStatus];
1✔
441
    }
442

443
    private function isDeprecationError(int $error): bool
444
    {
445
        $deprecations = E_DEPRECATED | E_USER_DEPRECATED;
73✔
446

447
        return ($error & $deprecations) !== 0;
73✔
448
    }
449

450
    /**
451
     * @return true
452
     */
453
    private function handleDeprecationError(string $message, ?string $file = null, ?int $line = null): bool
454
    {
455
        // Remove the trace of the error handler.
456
        $trace = array_slice(debug_backtrace(), 2);
2✔
457

458
        log_message(
2✔
459
            $this->config->deprecationLogLevel,
2✔
460
            "[DEPRECATED] {message} in {errFile} on line {errLine}.\n{trace}",
2✔
461
            [
2✔
462
                'message' => $message,
2✔
463
                'errFile' => clean_path($file ?? ''),
2✔
464
                'errLine' => $line ?? 0,
2✔
465
                'trace'   => self::renderBacktrace($trace),
2✔
466
            ]
2✔
467
        );
2✔
468

469
        return true;
2✔
470
    }
471

472
    // --------------------------------------------------------------------
473
    // Display Methods
474
    // --------------------------------------------------------------------
475

476
    /**
477
     * This makes nicer looking paths for the error output.
478
     *
479
     * @deprecated Use dedicated `clean_path()` function.
480
     */
481
    public static function cleanPath(string $file): string
482
    {
UNCOV
483
        return match (true) {
×
UNCOV
484
            str_starts_with($file, APPPATH)                             => 'APPPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(APPPATH)),
×
UNCOV
485
            str_starts_with($file, SYSTEMPATH)                          => 'SYSTEMPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(SYSTEMPATH)),
×
UNCOV
486
            str_starts_with($file, FCPATH)                              => 'FCPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(FCPATH)),
×
UNCOV
487
            defined('VENDORPATH') && str_starts_with($file, VENDORPATH) => 'VENDORPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(VENDORPATH)),
×
UNCOV
488
            default                                                     => $file,
×
UNCOV
489
        };
×
490
    }
491

492
    /**
493
     * Describes memory usage in real-world units. Intended for use
494
     * with memory_get_usage, etc.
495
     *
496
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
497
     */
498
    public static function describeMemory(int $bytes): string
499
    {
UNCOV
500
        if ($bytes < 1024) {
×
UNCOV
501
            return $bytes . 'B';
×
502
        }
503

UNCOV
504
        if ($bytes < 1_048_576) {
×
UNCOV
505
            return round($bytes / 1024, 2) . 'KB';
×
506
        }
507

UNCOV
508
        return round($bytes / 1_048_576, 2) . 'MB';
×
509
    }
510

511
    /**
512
     * Creates a syntax-highlighted version of a PHP file.
513
     *
514
     * @return bool|string
515
     *
516
     * @deprecated 4.4.0 No longer used. Moved to BaseExceptionHandler.
517
     */
518
    public static function highlightFile(string $file, int $lineNumber, int $lines = 15)
519
    {
UNCOV
520
        if ($file === '' || ! is_readable($file)) {
×
UNCOV
521
            return false;
×
522
        }
523

524
        // Set our highlight colors:
UNCOV
525
        if (function_exists('ini_set')) {
×
UNCOV
526
            ini_set('highlight.comment', '#767a7e; font-style: italic');
×
UNCOV
527
            ini_set('highlight.default', '#c7c7c7');
×
UNCOV
528
            ini_set('highlight.html', '#06B');
×
UNCOV
529
            ini_set('highlight.keyword', '#f1ce61;');
×
UNCOV
530
            ini_set('highlight.string', '#869d6a');
×
531
        }
532

533
        try {
UNCOV
534
            $source = file_get_contents($file);
×
UNCOV
535
        } catch (Throwable) {
×
UNCOV
536
            return false;
×
537
        }
538

UNCOV
539
        $source = str_replace(["\r\n", "\r"], "\n", $source);
×
UNCOV
540
        $source = explode("\n", highlight_string($source, true));
×
UNCOV
541
        $source = str_replace('<br />', "\n", $source[1]);
×
UNCOV
542
        $source = explode("\n", str_replace("\r\n", "\n", $source));
×
543

544
        // Get just the part to show
UNCOV
545
        $start = max($lineNumber - (int) round($lines / 2), 0);
×
546

547
        // Get just the lines we need to display, while keeping line numbers...
UNCOV
548
        $source = array_splice($source, $start, $lines, true);
×
549

550
        // Used to format the line number in the source
UNCOV
551
        $format = '% ' . strlen((string) ($start + $lines)) . 'd';
×
552

UNCOV
553
        $out = '';
×
554
        // Because the highlighting may have an uneven number
555
        // of open and close span tags on one line, we need
556
        // to ensure we can close them all to get the lines
557
        // showing correctly.
UNCOV
558
        $spans = 1;
×
559

UNCOV
560
        foreach ($source as $n => $row) {
×
UNCOV
561
            $spans += substr_count($row, '<span') - substr_count($row, '</span');
×
UNCOV
562
            $row = str_replace(["\r", "\n"], ['', ''], $row);
×
563

UNCOV
564
            if (($n + $start + 1) === $lineNumber) {
×
UNCOV
565
                preg_match_all('#<[^>]+>#', $row, $tags);
×
566

UNCOV
567
                $out .= sprintf(
×
UNCOV
568
                    "<span class='line highlight'><span class='number'>{$format}</span> %s\n</span>%s",
×
UNCOV
569
                    $n + $start + 1,
×
UNCOV
570
                    strip_tags($row),
×
UNCOV
571
                    implode('', $tags[0])
×
UNCOV
572
                );
×
573
            } else {
UNCOV
574
                $out .= sprintf('<span class="line"><span class="number">' . $format . '</span> %s', $n + $start + 1, $row) . "\n";
×
575
            }
576
        }
577

UNCOV
578
        if ($spans > 0) {
×
UNCOV
579
            $out .= str_repeat('</span>', $spans);
×
580
        }
581

UNCOV
582
        return '<pre><code>' . $out . '</code></pre>';
×
583
    }
584

585
    private static function renderBacktrace(array $backtrace): string
586
    {
587
        $backtraces = [];
3✔
588

589
        foreach ($backtrace as $index => $trace) {
3✔
590
            $frame = $trace + ['file' => '[internal function]', 'line' => '', 'class' => '', 'type' => '', 'args' => []];
3✔
591

592
            if ($frame['file'] !== '[internal function]') {
3✔
593
                $frame['file'] = sprintf('%s(%s)', $frame['file'], $frame['line']);
3✔
594
            }
595

596
            unset($frame['line']);
3✔
597
            $idx = $index;
3✔
598
            $idx = str_pad((string) ++$idx, 2, ' ', STR_PAD_LEFT);
3✔
599

600
            $args = implode(', ', array_map(static fn ($value): string => match (true) {
3✔
601
                is_object($value)   => sprintf('Object(%s)', $value::class),
3✔
602
                is_array($value)    => $value !== [] ? '[...]' : '[]',
3✔
603
                $value === null     => 'null',
3✔
604
                is_resource($value) => sprintf('resource (%s)', get_resource_type($value)),
3✔
605
                default             => var_export($value, true),
3✔
606
            }, $frame['args']));
3✔
607

608
            $backtraces[] = sprintf(
3✔
609
                '%s %s: %s%s%s(%s)',
3✔
610
                $idx,
3✔
611
                clean_path($frame['file']),
3✔
612
                $frame['class'],
3✔
613
                $frame['type'],
3✔
614
                $frame['function'],
3✔
615
                $args
3✔
616
            );
3✔
617
        }
618

619
        return implode("\n", $backtraces);
3✔
620
    }
621
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc