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

sineflow / clamav / 22552200290

01 Mar 2026 08:41PM UTC coverage: 75.893% (-0.2%) from 76.106%
22552200290

Pull #14

github

pmishev
Modernise codebase for PHP 8.2+ with minor API changes

- [BC] ScanStrategyClamdNetwork port is now int, not string
- [BC] Scanner::$scanStrategy is now private
- [BC] ScannerFactory throws \InvalidArgumentException for unknown strategies
- [BC] ScannedFile::__construct throws FileScanException on failure to parse clamav response
Pull Request #14: 2.0.0

13 of 22 new or added lines in 7 files covered. (59.09%)

4 existing lines in 3 files now uncovered.

85 of 112 relevant lines covered (75.89%)

50.63 hits per line

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

0.0
/src/Exception/SocketException.php
1
<?php
2

3
namespace Sineflow\ClamAV\Exception;
4

5
class SocketException extends \RuntimeException
6
{
7
    protected ?int $errorCode;
8

NEW
9
    public function __construct(string $message, ?int $socketErrorCode = null)
×
10
    {
11
        $this->errorCode = $socketErrorCode;
×
12
        if ($socketErrorCode) {
×
13
            $message = sprintf('%s: (%s) %s', $message, $socketErrorCode, socket_strerror($socketErrorCode));
×
14
        }
15

16
        parent::__construct($message);
×
17
    }
18

19
    /**
20
     * Get socket error (returned from 'socket_last_error')
21
     */
UNCOV
22
    public function getErrorCode(): ?int
×
23
    {
24
        return $this->errorCode;
×
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