Skip to content

Commit 1b32fa7

Browse files
Merge branch '9.2'
2 parents 7352ba3 + 2a8a602 commit 1b32fa7

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
2020

2121
* [#736](https://github.com/sebastianbergmann/php-code-coverage/issues/736): HTML report generator allows invalid values for low upper bound and high lower bound
2222
* [#854](https://github.com/sebastianbergmann/php-code-coverage/issues/854): "Class Coverage Distribution" and "Class Complexity" graphs are not displayed at full width
23+
* [#897](https://github.com/sebastianbergmann/php-code-coverage/issues/897): `declare(strict_types=1)` marked as uncovered
2324

2425
## [9.2.11] - 2022-02-18
2526

src/StaticAnalysis/ExecutableLinesFindingVisitor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use PhpParser\Node\Expr\PropertyFetch;
1919
use PhpParser\Node\Expr\StaticPropertyFetch;
2020
use PhpParser\Node\Expr\Ternary;
21-
use PhpParser\Node\Scalar;
21+
use PhpParser\Node\Scalar\Encapsed;
2222
use PhpParser\Node\Stmt\Break_;
2323
use PhpParser\Node\Stmt\Case_;
2424
use PhpParser\Node\Stmt\Catch_;
@@ -133,6 +133,7 @@ private function isExecutable(Node $node): bool
133133
$node instanceof Echo_ ||
134134
$node instanceof ElseIf_ ||
135135
$node instanceof Else_ ||
136+
$node instanceof Encapsed ||
136137
$node instanceof Expression ||
137138
$node instanceof Finally_ ||
138139
$node instanceof For_ ||
@@ -142,7 +143,6 @@ private function isExecutable(Node $node): bool
142143
$node instanceof NullsafePropertyFetch ||
143144
$node instanceof PropertyFetch ||
144145
$node instanceof Return_ ||
145-
$node instanceof Scalar ||
146146
$node instanceof StaticPropertyFetch ||
147147
$node instanceof Switch_ ||
148148
$node instanceof Ternary ||

tests/tests/RawCodeCoverageDataTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public function testUseStatementsAreUncovered(): void
228228
[
229229
12,
230230
14,
231-
15,
232231
16,
233232
18,
234233
],
@@ -256,7 +255,6 @@ public function testInterfacesAreUncovered(): void
256255
[
257256
7,
258257
9,
259-
10,
260258
11,
261259
13,
262260
],
@@ -298,13 +296,9 @@ public function testHeavyIndentationIsHandledCorrectly(): void
298296
25,
299297
28,
300298
31,
301-
33,
302-
38,
303299
40,
304300
46,
305301
48,
306-
50,
307-
52,
308302
54,
309303
60,
310304
71,

0 commit comments

Comments
 (0)