Skip to content

Instantly share code, notes, and snippets.

@slpsys
Created March 28, 2011 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slpsys/891339 to your computer and use it in GitHub Desktop.
Save slpsys/891339 to your computer and use it in GitHub Desktop.
Yet Another Reason Why PHP is Terrible, and Tooling Does Matter.
<?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