Title: Static method calling $this
Last modified: March 26, 2019

---

# Static method calling $this

 *  [rachelbronstein](https://wordpress.org/support/users/rachelbronstein/)
 * (@rachelbronstein)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/static-method-calling-this/)
 * In the class `Libsyn\Service\Cron`, the method `run` (line 56 of /admin/lib/LibSyn/
   Service/Cron.php) returns `$this->activate()`. `$this` cannot be used in a static
   context.
 * This gives me an error in my code editor, which is annoying when I’m trying to
   debug. I don’t see this method called anywhere (`imports.php` calls the non-static`
   activate` method directly). Could this method be deleted in the next release?
   It’s not critical but I would like the error to go away and, were it called, 
   it would throw a fatal exception.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Thread Starter [rachelbronstein](https://wordpress.org/support/users/rachelbronstein/)
 * (@rachelbronstein)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/static-method-calling-this/#post-11657733)
 * Following up here: there were **a lot** of other PHP errors in this plugin, especially
   after upgrading to PHP 7.2, so we have chosen a different provider.

Viewing 1 replies (of 1 total)

The topic ‘Static method calling $this’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/libsyn-podcasting_bababa.svg)
 * [Libsyn Publisher Hub](https://wordpress.org/plugins/libsyn-podcasting/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/libsyn-podcasting/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/libsyn-podcasting/)
 * [Active Topics](https://wordpress.org/support/plugin/libsyn-podcasting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/libsyn-podcasting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/libsyn-podcasting/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 1 reply
 * 1 participant
 * Last reply from: [rachelbronstein](https://wordpress.org/support/users/rachelbronstein/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/static-method-calling-this/#post-11657733)
 * Status: not resolved