-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix is type op usage with pseudoglobals
Summary: Fixes #8186 Reviewed By: fredemmott Differential Revision: D7915366
- Loading branch information
1 parent
f58f112
commit f639612
Showing
3 changed files
with
18 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
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 | ||
|
||
function foo() { | ||
var_dump(is_array($_GET)); | ||
var_dump($_GET); | ||
} | ||
|
||
foo(); |
3 changes: 3 additions & 0 deletions
3
hphp/test/slow/typecheck/is_typeop_with_pseudoglobal.php.expect
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 @@ | ||
bool(true) | ||
array(0) { | ||
} |