Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored and sebastianbergmann committed Feb 27, 2023
1 parent 0e2b405 commit 850b746
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/_files/source_for_branched_exec_lines.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ public function withMultilineStrings()

interface MyInterface
{
public const MY_INTERFACE_CONST = 1;
public function myMethod();
}

Expand Down
6 changes: 6 additions & 0 deletions tests/_files/source_for_branched_exec_lines_php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ public function bar((A&B)|null $entity)
return $entity; // +1
}
}

// Const in traits
trait MyConstInTrait
{
public const MY_TRAIT_CONST = 1;
}

0 comments on commit 850b746

Please sign in to comment.