-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Handle mix InlineHTML on FileWithoutNamespace (#3648)
* Added failling declare-strict test currently declare-strict is added twice * rename fixture * fix * Fix phsptan * add more fixture: only inline html --------- Co-authored-by: Markus Staab <markus.staab@redaxo.de>
- Loading branch information
1 parent
0a086a8
commit 61f2c42
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.../Rector/StmtsAwareInterface/DeclareStrictTypesRector/Fixture/mix_next_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,18 @@ | ||
<?php | ||
|
||
use rexstan\RexStan; | ||
|
||
?> | ||
<div style="width: 80%; background-color: rgb(32, 43, 53)"> | ||
Hello | ||
</div> | ||
----- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use rexstan\RexStan; | ||
?> | ||
<div style="width: 80%; background-color: rgb(32, 43, 53)"> | ||
Hello | ||
</div> |
12 changes: 12 additions & 0 deletions
12
...tion/Rector/StmtsAwareInterface/DeclareStrictTypesRector/Fixture/only_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,12 @@ | ||
<div style="width: 80%; background-color: rgb(32, 43, 53)"> | ||
Hello | ||
</div> | ||
----- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
?> | ||
<div style="width: 80%; background-color: rgb(32, 43, 53)"> | ||
Hello | ||
</div> |
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