Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo {
- public function __call($name, $parameters) {
- echo "You called $name().n";
- }
- }
- $f = new Foo;
- $f->test(); // runs fine, but PhpStorm flags as a warning
- $f = new Foo;
- $f->test()->chain()->moreChain(); // potentially runs fine
Add Comment
Please, Sign In to add comment