Last active
January 10, 2017 16:30
-
-
Save mglinski/b5ddab6e162d0f96c6d28a78af4f715b to your computer and use it in GitHub Desktop.
Revisions
-
mglinski revised this gist
Jan 10, 2017 . 2 changed files with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ <?php if (rand(0,1)) { echo "Return Types With Strict Types DISABLED in include file\n"; include 'include.php'; } else { echo "Return Types With Strict Types ENABLED in include file\n"; include 'includeStrict.php'; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ declare(strict_types=1); if (rand(0,1)) { echo "Return Types With Strict Types DISABLED in include file\n"; include 'include.php'; } else { echo "Return Types With Strict Types ENABLED in include file\n"; include 'includeStrict.php'; } -
mglinski revised this gist
Jan 10, 2017 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <?php declare(strict_types=1); function returnsInt() : int { return 2; This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <?php declare(strict_types=1); if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n"; -
mglinski revised this gist
Jan 10, 2017 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <?php declare(strict_types=1) function returnsInt() : int { return 2; This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <?php declare(strict_types=1) if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n"; -
mglinski revised this gist
Jan 10, 2017 . 2 changed files with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ <?php if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n"; include 'include.php'; } else { echo "Return Types With Strict Types ENABLED\n"; include 'includeStrict.php'; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ define(strict_types=1); if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n"; include 'include.php'; } else { echo "Return Types With Strict Types ENABLED\n"; include 'includeStrict.php'; } -
mglinski created this gist
Jan 10, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <?php function returnsInt() : int { return 2; } function returnsFloat() : float { return 1; } function returnsBool() : bool { return 1; } function returnsString() : string { return 1; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ <?php define(strict_types=1); function returnsInt() : int { return 2; } function returnsFloat() : float { return 1; } function returnsBool() : bool { return 1; } function returnsString() : string { return 1; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?php if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n" include 'include.php'; } else { echo "Return Types With Strict Types ENABLED\n" include 'includeStrict.php'; } var_dump([ 'returnsInt' => returnsInt(), 'returnsFloat' => returnsFloat(), 'returnsBool' => returnsBool(), 'returnsString' => returnsString(), ]); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <?php define(strict_types=1); if (rand(0,1)) { echo "Return Types With Strict Types DISABLED\n" include 'include.php'; } else { echo "Return Types With Strict Types ENABLED\n" include 'includeStrict.php'; } var_dump([ 'returnsInt' => returnsInt(), 'returnsFloat' => returnsFloat(), 'returnsBool' => returnsBool(), 'returnsString' => returnsString(), ]);