Skip to content

Commit 850b746

Browse files
Slamdunksebastianbergmann
authored andcommitted
Add test cases
1 parent 0e2b405 commit 850b746

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/_files/source_for_branched_exec_lines.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ public function withMultilineStrings()
562562

563563
interface MyInterface
564564
{
565+
public const MY_INTERFACE_CONST = 1;
565566
public function myMethod();
566567
}
567568

tests/_files/source_for_branched_exec_lines_php82.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ public function bar((A&B)|null $entity)
88
return $entity; // +1
99
}
1010
}
11+
12+
// Const in traits
13+
trait MyConstInTrait
14+
{
15+
public const MY_TRAIT_CONST = 1;
16+
}

0 commit comments

Comments
 (0)