-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoImport] Skip first stmt is InlineHTML (#3288)
* [AutoImport] Skip first stmt is InlineHTML * Fixed 🎉 * final touch: verify new stmts too * final touch: test first stmt is not inlineHTMl
- Loading branch information
1 parent
836fa59
commit 8f4642c
Showing
4 changed files
with
51 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
22 changes: 22 additions & 0 deletions
22
tests/Issues/PrintStmtsIndexAutoImport/Fixture/first_is_not_inline_html.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,22 @@ | ||
<?php | ||
$a = ''; | ||
?> | ||
<div></div> | ||
<?php | ||
|
||
require(__DIR__ . '/../../vendor/autoload.php'); | ||
|
||
$dotenv = \Dotenv\Dotenv::createUnsafeMutable(__DIR__ . '/../../'); | ||
$dotenv->load(); | ||
----- | ||
<?php | ||
use Dotenv\Dotenv; | ||
$a = ''; | ||
?> | ||
<div></div> | ||
<?php | ||
|
||
require(__DIR__ . '/../../vendor/autoload.php'); | ||
|
||
$dotenv = Dotenv::createUnsafeMutable(__DIR__ . '/../../'); | ||
$dotenv->load(); |
8 changes: 8 additions & 0 deletions
8
tests/Issues/PrintStmtsIndexAutoImport/Fixture/skip_first_html.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,8 @@ | ||
#!/usr/local/bin/php -q | ||
|
||
<?php | ||
|
||
require(__DIR__ . '/../../vendor/autoload.php'); | ||
|
||
$dotenv = \Dotenv\Dotenv::createUnsafeMutable(__DIR__ . '/../../'); | ||
$dotenv->load(); |
10 changes: 10 additions & 0 deletions
10
tests/Issues/PrintStmtsIndexAutoImport/Fixture/skip_first_html2.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,10 @@ | ||
<div> | ||
some text | ||
</div> | ||
|
||
<?php | ||
|
||
require(__DIR__ . '/../../vendor/autoload.php'); | ||
|
||
$dotenv = \Dotenv\Dotenv::createUnsafeMutable(__DIR__ . '/../../'); | ||
$dotenv->load(); |