Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
unexpected T_PAAMAYIM_NEKUDOTAYIM #1
I developed with 1.0 locally. Everything seemed to work fine. After uploading and activating on another site, I was greeted an error "unexpected T_PAAMAYIM_NEKUDOTAYIM" on line 501. This line is:
By manually replacing "$class_name" with "Post_Options_API_1_0", it fixed the error, although the same type of error popped up on line 512. I implemented the same fix for that error.
After some searching, I learned that this occurred because my dev server is running PHP 5.3.6, while the other server is on 5.2.14. PHP.net's article on scope resolution operator's states: "As of PHP 5.3.0, it's possible to reference the class using a variable." So, I guess this is only compatible with PHP 5.3+.
I think that either these functions should be altered, or there should be a note that the API will only work with 5.3+