Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated notice about non-static function #484

Merged
merged 1 commit into from
Jul 29, 2018

Conversation

philipjohn
Copy link
Contributor

set_request_last_from_entries() is being called statically when the function isn't declared static, resulting in this error:

Deprecated: Non-static method WPCOM_Liveblog_AMP::set_request_last_from_entries() should not be called statically in /liveblog/classes/class-wpcom-liveblog-amp.php on line 259

This change fixes that by declaring the function as static.

set_request_last_from_entries() is being called statically when the function isn't declared static, resulting in this error:

> Deprecated: Non-static method WPCOM_Liveblog_AMP::set_request_last_from_entries() should not be called statically in /liveblog/classes/class-wpcom-liveblog-amp.php on line 259

This change fixes that by declaring the function as static.
@philipjohn philipjohn merged commit 679048f into master Jul 29, 2018
@philipjohn philipjohn deleted the fix/static-set_request_last_from_entries branch July 29, 2018 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants