How is this working? Shouldn’t this throw an error, since I am trying to call a non static method statically? Basically, I’ve never instantiated an object of type something.
class Something {
public function helloworld() {
echo 'hello world';
}
}
Something::helloworld();
Put this at the top of your script:
… and see what happens then:
Admittedly, it more of a notice than an error though. Your script will happily continue to run.