-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bce7c95
commit 8330b5e
Showing
12 changed files
with
252 additions
and
48 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
4 changes: 4 additions & 0 deletions
4
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.10.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,4 @@ | ||
<?php | ||
declare(ticks=1) {} | ||
|
||
declare(strict_types=1); |
6 changes: 6 additions & 0 deletions
6
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.10.inc.fixed
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,6 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
declare(ticks=1) {} | ||
|
12 changes: 12 additions & 0 deletions
12
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.11.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 @@ | ||
<html> | ||
<head> | ||
<title> | ||
<?php | ||
declare(strict_types=1); | ||
echo 'Title'; | ||
?> | ||
</title> | ||
</head> | ||
|
||
<?php echo $content; ?> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.11.inc.fixed
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 @@ | ||
<?php declare(strict_types=1); ?> | ||
<html> | ||
<head> | ||
<title> | ||
<?php | ||
echo 'Title'; | ||
?> | ||
</title> | ||
</head> | ||
|
||
<?php echo $content; ?> | ||
</html> |
6 changes: 6 additions & 0 deletions
6
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.12.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,6 @@ | ||
<?php | ||
// Comment | ||
declare(strict_types=1); ?> | ||
<html> | ||
<?php echo $content; ?> | ||
</html> |
8 changes: 8 additions & 0 deletions
8
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.12.inc.fixed
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 @@ | ||
<?php | ||
// Comment | ||
|
||
declare(strict_types=1); | ||
?> | ||
<html> | ||
<?php echo $content; ?> | ||
</html> |
2 changes: 2 additions & 0 deletions
2
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.13.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,2 @@ | ||
<?php | ||
declare(strict_types=1) /* comment */; |
3 changes: 3 additions & 0 deletions
3
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.13.inc.fixed
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,3 @@ | ||
<?php | ||
|
||
declare(strict_types=1) /* comment */; |
7 changes: 1 addition & 6 deletions
7
src/Standards/Generic/Tests/PHP/DeclareStrictTypesUnitTest.9.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 |
---|---|---|
@@ -1,6 +1 @@ | ||
phpcs:set Generic.PHP.DeclareStrictTypes linesBefore 0 | ||
phpcs:set Generic.PHP.DeclareStrictTypes linesAfter 2 | ||
phpcs:set Generic.PHP.DeclareStrictTypes format declare(strict_types = 1); | ||
<?php | ||
declare(strict_types=1); | ||
echo 'hey'; | ||
<?php /* Must be first. */ declare(strict_types=1); /* Comment after. */ ?> |
Oops, something went wrong.