Answer the question
In order to leave comments, you need to log in
Class methods are executed as static why?
I ran into an amazing problem. I have a class that has a couple of methods.
Example
class Response {
public function execute() {
return 'thing';
}
}
Response::execute()
echo Response::execute();
echo "\n";
# thing
$r = new Response;
echo $r->execute();
# thing
Answer the question
In order to leave comments, you need to log in
Turn on the output of all errors and you will see
As well as
$arr = [];
echo $arr['some'];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question