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

ericfortmeyer / activity-log / 20388886829

20 Dec 2025 04:04AM UTC coverage: 55.481% (-1.1%) from 56.627%
20388886829

push

github

web-flow
Use-exception-handling (#57)

* refactor: use new exception handling feature

Signed-off-by: Eric Fortmeyer <e.fortmeyer01@gmail.com>

* build: upgrade to phpolar 8.3.0

The project will now use the new exception handling feature.

Signed-off-by: Eric Fortmeyer <e.fortmeyer01@gmail.com>

0 of 13 new or added lines in 3 files covered. (0.0%)

329 of 593 relevant lines covered (55.48%)

1.64 hits per line

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

0.0
/src/ExceptionHandler.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace EricFortmeyer\ActivityLog;
6

7
use Phpolar\Phpolar\ExceptionHandlerInterface;
8
use Phpolar\Phpolar\Http\EmptyResponse;
9
use Psr\Log\LoggerInterface;
10
use Throwable;
11

12
final readonly class ExceptionHandler implements ExceptionHandlerInterface
13
{
14
    public function __construct(
15
        private LoggerInterface $logger,
NEW
16
    ) {}
×
17

18
    public function handle(Throwable $e): EmptyResponse
19
    {
NEW
20
        $this->logger->alert(
×
NEW
21
            "Exception",
×
NEW
22
            [
×
NEW
23
                "exception" => $e->getMessage(),
×
NEW
24
                "stacktrace" => $e->getTrace()
×
NEW
25
            ]
×
NEW
26
        );
×
27

NEW
28
        return new EmptyResponse();
×
29
    }
30
}
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