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

azjezz / psl / 8560673219

04 Apr 2024 08:09PM UTC coverage: 98.781% (-0.1%) from 98.91%
8560673219

push

github

web-flow
feat(types): Memoize simple types without arguments (#457)

63 of 63 new or added lines in 25 files covered. (100.0%)

6 existing lines in 3 files now uncovered.

4377 of 4431 relevant lines covered (98.78%)

58.3 hits per line

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

50.0
/src/Psl/Type/Internal/NumType.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Psl\Type\Internal;
6

7
/**
8
 * @extends UnionType<int, float>
9
 *
10
 * @internal
11
 */
12
final class NumType extends UnionType
13
{
14
    public function __construct()
15
    {
16
        /** @psalm-suppress MissingThrowsDocblock */
UNCOV
17
        parent::__construct(new IntType(), new FloatType());
×
18
    }
19

20
    public function toString(): string
21
    {
22
        return 'num';
122✔
23
    }
24
}
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