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

nikic / PHP-Parser / 18712471845

22 Oct 2025 09:57AM UTC coverage: 92.375% (-0.2%) from 92.54%
18712471845

Pull #1113

github

web-flow
Merge 2a2622abf into 3a454ca03
Pull Request #1113: add ContaintsStmts interface to mark stmt classes with nested stmts inside

2 of 17 new or added lines in 14 files covered. (11.76%)

16 existing lines in 14 files now uncovered.

7681 of 8315 relevant lines covered (92.38%)

226.1 hits per line

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

80.0
/lib/PhpParser/Node/Stmt/Finally_.php
1
<?php declare(strict_types=1);
2

3
namespace PhpParser\Node\Stmt;
4

5
use PhpParser\Node;
6

7
class Finally_ extends Node\Stmt implements Node\ContainsStmts {
8
    /** @var Node\Stmt[] Statements */
9
    public array $stmts;
10

11
    /**
12
     * Constructs a finally node.
13
     *
14
     * @param Node\Stmt[] $stmts Statements
15
     * @param array<string, mixed> $attributes Additional attributes
16
     */
17
    public function __construct(array $stmts = [], array $attributes = []) {
18
        $this->attributes = $attributes;
8✔
19
        $this->stmts = $stmts;
8✔
20
    }
21

22
    public function getSubNodeNames(): array {
23
        return ['stmts'];
5✔
24
    }
25

26
    public function getType(): string {
27
        return 'Stmt_Finally';
7✔
28
    }
29

30
    /**
31
     * @return Node\Stmt[]
32
     */
33
    public function getStmts(): array {
NEW
UNCOV
34
        return $this->stmts;
×
35
    }
36
}
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