Last active
November 19, 2019 18:28
-
-
Save iggyvolz/e06af622e8c35adb11a1bb6be25fcf32 to your computer and use it in GitHub Desktop.
Test case for phan/phan#3524
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 characters
<?php | |
function get_thing_might_be_null():?int | |
{ | |
return 7; | |
} | |
{ | |
if($foo = get_thing_might_be_null() && $foo > 5) { | |
echo "hello world"; | |
} | |
} | |
{ | |
if($foo = get_thing_might_be_null()) { | |
if($foo>5) { | |
echo "hello world"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment