Created
September 10, 2009 12:56
-
-
Save tobiastom/184540 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 A { | |
public function foo() { | |
B::baz(); | |
} | |
} | |
class B { | |
static public function baz() { | |
static::bam(); | |
} | |
static public function bam() { | |
print 'called bam'; | |
} | |
} | |
$a = new A; | |
$a->foo(); | |
# PHP Fatal error: Call to undefined method A::bam() in /Users/tobias/Desktop/foo.php on line 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment