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

krakjoe / phathom / 26996743271

05 Jun 2026 05:11AM UTC coverage: 98.199% (-1.8%) from 100.0%
26996743271

push

github

krakjoe
drop unused member

1 of 1 new or added line in 1 file covered. (100.0%)

29 existing lines in 2 files now uncovered.

1581 of 1610 relevant lines covered (98.2%)

22.79 hits per line

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

18.75
/src/phathom/Earley/Back.php
1
<?php
2
namespace pharos\phathom\Earley {
3
    use \WeakReference;
4

5
    final class Back {
6
        /*
7
        * The normal object destructor (not the GC) can stack overflow due to deep recursion.
8
        *
9
        * Weak referencing breaks the cycle that causes that overflow.
10
        *
11
        * !DON'T CHANGE THIS!
12
        */
13
        private WeakReference  $__prev__;
14
        private ?WeakReference $__child__;
15

16
        public private(set) Item $prev {
17
            get {
UNCOV
18
                return $this
×
UNCOV
19
                    ->__prev__->get();
×
20
            }
21
            set (Item $item) {
UNCOV
22
                $this->__prev__ =
×
UNCOV
23
                    WeakReference::create($item);
×
24
            }
25
        }
26

27
        public private(set) ?Item $child {
28
            get {
UNCOV
29
                return $this
×
UNCOV
30
                    ->__child__?->get();
×
31
            }
32
            set (?Item $item) {
UNCOV
33
                if ($item === null) {
×
UNCOV
34
                    $this->__child__ =
×
UNCOV
35
                        null;
×
UNCOV
36
                    return;
×
UNCOV
37
                }
×
38

UNCOV
39
                $this->__child__ =
×
UNCOV
40
                    WeakReference::create($item);
×
41
            }
42
        }
43

44
        public function __construct(
27✔
45
            Item  $prev,
46
            ?Item $child,
47
            public ?int $token) {
48
            $this->prev  = $prev;
27✔
49
            $this->child = $child;
27✔
50
        }
51
    }
52
}
53

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