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

voku / Simple-PHP-Code-Parser / 5709606856

pending completion
5709606856

push

github

voku
[+]: ci: run test with PHP 8.2

1305 of 1592 relevant lines covered (81.97%)

7.61 hits per line

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

0.0
/src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace voku\SimplePhpParser\Parsers\Helper;
6

7
use PhpParser\Error;
8
use PhpParser\ErrorHandler;
9

10
final class ParserErrorHandler extends ErrorHandler\Collecting
11
{
12
    /**
13
     * Handle an error generated during lexing, parsing or some other operation.
14
     *
15
     * @param \PhpParser\Error $error The error that needs to be handled
16
     */
17
    public function handleError(Error $error): void
18
    {
19
        $error->setRawMessage($error->getRawMessage() . "\n" . $error->getFile());
×
20

21
        parent::handleError($error);
×
22
    }
23
}
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

© 2026 Coveralls, Inc