Skip to content

Commit

Permalink
Update tests to have more examples with more than one superfluous sem…
Browse files Browse the repository at this point in the history
…icolon
  • Loading branch information
rodrigoprimo committed Nov 25, 2024
1 parent d4d58f5 commit 428c88c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function_call();

?>
<input name="<?php ; something_else(); ?>" />
<input name="<?php something_else(); ; ?>" />
<input name="<?php something_else(); ; ; ?>" />

/*
* Test empty statement: no code between PHP open and close tag.
Expand All @@ -42,7 +42,7 @@ function_call();
-->
<?php ; ?>

<input name="<?php ; ?>" /> <!-- Bad. -->
<input name="<?php ;; ?>" /> <!-- Bad. -->

<!-- Tests with short open echo tag. -->
<input name="<?= 'some text' ?>" /> <!-- OK. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function getWarningList($testFile='')
15 => 1,
18 => 1,
21 => 1,
22 => 1,
22 => 2,
31 => 1,
33 => 1,
43 => 1,
45 => 1,
45 => 2,
49 => 1,
50 => 1,
57 => 1,
Expand Down

0 comments on commit 428c88c

Please sign in to comment.