i have a php script that runs perfectly
but i get 2 errors:
Warning: The magic method __set() must have public visibility
and cannot be static in C:\wamp\www\class.XMLHttpRequest.php on line 63
Warning: The magic method __get() must have public visibility
and cannot be static in C:\wamp\www\class.XMLHttpRequest.php on line 89
is this important? can i make it dissapear? or fix ?
thanks in advance!
Post the corresponding code.
You can fix the issue by removing the keyword
staticand replaceprivatewithpublicon the lines 63 and 89. But even if a private static__set()or__get()method is invalid PHP and doesn’t make much sense, maybe the guy who wrote the code had a reason to do so. Check nearby comments for hints.