-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from php-annotations/bug/99
Fix parsing of PHP file with annotations without context
- Loading branch information
Showing
3 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace mindplay\test\Sample; | ||
|
||
class OrphanedAnnotations | ||
{ | ||
|
||
/** | ||
* Some method. | ||
* | ||
* @return void | ||
*/ | ||
public function someMethod() | ||
{ | ||
$a = 5; | ||
|
||
// @codeCoverageIgnoreStart | ||
if (false) { | ||
$a = 6; | ||
} | ||
// @codeCoverageIgnoreEnd | ||
|
||
$a = 5; | ||
} | ||
|
||
} |