Skip to content

Instantly share code, notes, and snippets.

@Taluu
Created January 12, 2015 10:30
Show Gist options
  • Save Taluu/9aeaabbc44f85b817ffd to your computer and use it in GitHub Desktop.
Save Taluu/9aeaabbc44f85b817ffd to your computer and use it in GitHub Desktop.
<?php
class Foo
{
public function doSomething()
{
return $this;
}
}
$a = (new Foo)->doSomething();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment