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

Moln / php-mysql-replication / 3882357544

pending completion
3882357544

Pull #8

github

GitHub
Merge 51519564d into a3462d9d4
Pull Request #8: fix: Deprecation with PHP 8.1. Add git action check of PHP8.2

122 of 122 new or added lines in 10 files covered. (100.0%)

1252 of 1548 relevant lines covered (80.88%)

27.03 hits per line

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

0.0
/src/MySQLReplication/Event/GtidEvent.php
1
<?php
2
declare(strict_types=1);
3

4
namespace MySQLReplication\Event;
5

6
use MySQLReplication\Event\DTO\GTIDLogDTO;
7

8
class GtidEvent extends EventCommon
9
{
10
    public function makeGTIDLogDTO(): GTIDLogDTO
11
    {
12
        $commitFlag = 1 === $this->binaryDataReader->readUInt8();
×
13
        $sid = unpack('H*', $this->binaryDataReader->read(16))[1];
×
14
        $gno = $this->binaryDataReader->readUInt64();
×
15

16
        $gtid = vsprintf('%s%s%s%s%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s%s%s%s%s%s%s%s%s', str_split($sid)) . ':' . $gno;
×
17

18
        $this->eventInfo->getBinLogCurrent()->setGtid($gtid);
×
19

20
        return new GTIDLogDTO(
×
21
            $this->eventInfo,
×
22
            $commitFlag,
×
23
            $gtid
×
24
        );
×
25
    }
26
}
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