-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSR2/ClassDeclaration: add test with close brace followed by PHP clos…
…e tag Related to 552 This adds a test to the sniff documenting that when a PHP close tag is on the same line as the OO close brace, the sniff will throw an error. In my opinion, this is the correct and expected behaviour.
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,3 +338,9 @@ $foo->bar( | |
// ... | ||
}, | ||
); | ||
|
||
enum BraceNotOnLineByItselfCloseTagError | ||
{ | ||
} ?> | ||
|
||
<?php |
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 |
---|---|---|
|
@@ -327,3 +327,9 @@ $foo->bar( | |
// ... | ||
}, | ||
); | ||
|
||
enum BraceNotOnLineByItselfCloseTagError | ||
{ | ||
} ?> | ||
|
||
<?php |
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 |
---|---|---|
|
@@ -79,6 +79,7 @@ public function getErrorList() | |
310 => 1, | ||
316 => 1, | ||
324 => 1, | ||
344 => 1, | ||
]; | ||
|
||
}//end getErrorList() | ||
|