Created
March 28, 2011 21:38
-
-
Save slpsys/891339 to your computer and use it in GitHub Desktop.
Yet Another Reason Why PHP is Terrible, and Tooling Does Matter.
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 | |
class Test { | |
public function What() { echo "What?"; } | |
} | |
// Fine | |
$a = new Test(); | |
$a->What(); | |
// This breaks | |
(new Test())->What(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment