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: Static Call to Non-Static Function #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asharirfan
Copy link

Hello guys 🙌

I have fixed a warning related to calling a non-static function statically.

[03-Oct-2018 15:04:53 UTC] PHP Deprecated:  Non-static method MainWPExampleExtension::renderPage() should not be called statically in /app/public/wp-content/plugins/mainwp-hello-world-extension/mainwp-example-extension.php on line 203
[03-Oct-2018 15:04:53 UTC] PHP Stack trace:
[03-Oct-2018 15:04:53 UTC] PHP   1. {main}() /app/public/wp-admin/admin.php:0
[03-Oct-2018 15:04:53 UTC] PHP   2. do_action() /app/public/wp-admin/admin.php:224
[03-Oct-2018 15:04:53 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
[03-Oct-2018 15:04:53 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:310
[03-Oct-2018 15:04:53 UTC] PHP   5. MainWPExampleExtensionActivator->settings() /app/public/wp-includes/class-wp-hook.php:286

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant