Skip to content

Instantly share code, notes, and snippets.

@akondas
Created June 16, 2015 21:41
Show Gist options
  • Save akondas/787ed956ef428f36e359 to your computer and use it in GitHub Desktop.
Save akondas/787ed956ef428f36e359 to your computer and use it in GitHub Desktop.
<?php
// call closures assigned to properties
($object->closureProperty)()
// chain static calls
class foo { static $bar = 'baz'; }
class baz { static $bat = 'Hello World'; }
baz::$bat = function () { echo "Hello World"; };
$foo = 'foo';
($foo::$bar::$bat)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment