Created
March 29, 2012 21:22
-
-
Save avargas/2243937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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