Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created September 10, 2009 12:56
Show Gist options
  • Save tobiastom/184540 to your computer and use it in GitHub Desktop.
Save tobiastom/184540 to your computer and use it in GitHub Desktop.
<?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