Today in research
__call()
And
__callStatic()
When I read the story of bird brother Php calling Scope
But did you find that the following code did not get the same results in PHP5.5 and PHP7?
test();?>
I didn't find PHP7 's instructions for adjusting this. Thank you for your advice.
Reply content:
Today in the research __call()
and __callStatic()
the time to read the bird Brother's article php calling Scope
But did you find that the following code did not get the same results in PHP5.5 and PHP7?
test();?>
I didn't find PHP7 's instructions for adjusting this. Thank you for your advice.
With this adjustment, you can find it in the non-backwards compatibility of PHP 7 and have been marked as DEPRECATED in PHP 5.6
A static call to a non-static method is prompted in a static call for undefined $this and an error.
Http://php.net/manual/en/migr ...
Http://m.runoob.com/php/php-d ...