Created
July 4, 2019 18:41
-
-
Save chx/316be84ee550d5c805b5dbea989f0026 to your computer and use it in GitHub Desktop.
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
<?php | |
interface foo { | |
} | |
interface bar { | |
function foo(Foo $foo); | |
} | |
class broken implements bar { | |
function foo(bar $x) {} | |
} |
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
<?php | |
try { | |
include 'z.php'; | |
} | |
catch (Throwable $t) { | |
echo 'caught!'; | |
} | |
try { | |
include 'x.php'; | |
} | |
catch (Throwable $t) { | |
echo 'caught!'; | |
} |
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
<?php | |
Broken! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment