Skip to content

Instantly share code, notes, and snippets.

@avargas
Created March 29, 2012 21:22
Show Gist options
  • Save avargas/2243937 to your computer and use it in GitHub Desktop.
Save avargas/2243937 to your computer and use it in GitHub Desktop.
<?php
class Controller {
public function run ()
{
SomeLibrary::accidentalStatic();
}
public function __toString ()
{
return '__toString: ' . get_class($this) . "<br />\n";
}
}
class SomeLibrary
{
public function accidentalStatic ()
{
echo $this;
}
}
$controller = new Controller;
$controller->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment