-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Printer] Handle add Node after Nop not first stmt (#3312)
* [Printer] Handle add Node after Nop not first stmt * Fixed 🎉 * [ci-review] Rector Rectify * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
33527d4
commit 3555ee3
Showing
3 changed files
with
31 additions
and
18 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
14 changes: 14 additions & 0 deletions
14
tests/Issues/AddNodeAfterNodeStmt/FixtureNextNop/not_first_stmt.php.inc
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,14 @@ | ||
<div></div> | ||
<?php | ||
/** @var Zend_View $this */ | ||
?> | ||
<div></div> | ||
----- | ||
<div></div> | ||
<?php | ||
/** @var Zend_View $this */ | ||
/** | ||
* @var string $container | ||
*/ | ||
echo 'this is new stmt after Nop';?> | ||
<div></div> |