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

mimmi20 / browser-detector / 18531733666

15 Oct 2025 02:08PM UTC coverage: 95.76% (-0.5%) from 96.217%
18531733666

push

github

web-flow
Merge pull request #1004 from mimmi20/updates

add new devices

193 of 233 new or added lines in 23 files covered. (82.83%)

3 existing lines in 1 file now uncovered.

7996 of 8350 relevant lines covered (95.76%)

13.39 hits per line

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

0.0
/src/Version/ForcedNullVersion.php
1
<?php
2

3
/**
4
 * This file is part of the browser-detector package.
5
 *
6
 * Copyright (c) 2012-2025, Thomas Mueller <mimmi20@live.de>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace BrowserDetector\Version;
15

16
use Override;
17

18
final class ForcedNullVersion implements VersionInterface
19
{
20
    /**
21
     * @return array<string, string|null>
22
     *
23
     * @throws void
24
     */
NEW
25
    #[Override]
×
26
    public function toArray(): array
27
    {
NEW
28
        return [
×
NEW
29
            'major' => null,
×
NEW
30
            'minor' => null,
×
NEW
31
            'micro' => null,
×
NEW
32
            'patch' => null,
×
NEW
33
            'micropatch' => null,
×
NEW
34
            'stability' => null,
×
NEW
35
            'build' => null,
×
NEW
36
        ];
×
37
    }
38

39
    /** @throws void */
NEW
40
    #[Override]
×
41
    public function getMajor(): string | null
42
    {
NEW
43
        return null;
×
44
    }
45

46
    /** @throws void */
NEW
47
    #[Override]
×
48
    public function getMinor(): string | null
49
    {
NEW
50
        return null;
×
51
    }
52

53
    /** @throws void */
NEW
54
    #[Override]
×
55
    public function getMicro(): string | null
56
    {
NEW
57
        return null;
×
58
    }
59

60
    /** @throws void */
NEW
61
    #[Override]
×
62
    public function getPatch(): string | null
63
    {
NEW
64
        return null;
×
65
    }
66

67
    /** @throws void */
NEW
68
    #[Override]
×
69
    public function getMicropatch(): string | null
70
    {
NEW
71
        return null;
×
72
    }
73

74
    /** @throws void */
NEW
75
    #[Override]
×
76
    public function getBuild(): string | null
77
    {
NEW
78
        return null;
×
79
    }
80

81
    /** @throws void */
NEW
82
    #[Override]
×
83
    public function getStability(): string | null
84
    {
NEW
85
        return null;
×
86
    }
87

88
    /** @throws void */
NEW
89
    #[Override]
×
90
    public function isAlpha(): bool | null
91
    {
NEW
92
        return null;
×
93
    }
94

95
    /** @throws void */
NEW
96
    #[Override]
×
97
    public function isBeta(): bool | null
98
    {
NEW
99
        return null;
×
100
    }
101

102
    /**
103
     * returns the detected version
104
     *
105
     * @throws void
106
     *
107
     * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
108
     */
NEW
109
    #[Override]
×
110
    public function getVersion(int $mode = VersionInterface::COMPLETE): string | null
111
    {
NEW
112
        return null;
×
113
    }
114
}
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