Title: Method ReflectionParameter::getClass() is deprecated
Last modified: February 26, 2021

---

# Method ReflectionParameter::getClass() is deprecated

 *  Resolved [Zoker](https://wordpress.org/support/users/zoker/)
 * (@zoker)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated/)
 * Hi there,
 * I currently test PHP 8 and while I know, that it is not yet 100% compatible with
   WordPress, I still want to provide errors within plugins early to the developer.
 * In my log I see the following message quite often:
 *     ```
       [26-Feb-2021 15:02:21 UTC] PHP Deprecated:  Method ReflectionParameter::getClass() is deprecated in /wp-content/plugins/fluent-smtp/includes/Core/Container.php on line 833
       [26-Feb-2021 15:02:21 UTC] PHP Deprecated:  Method ReflectionParameter::getClass() is deprecated in /wp-content/plugins/fluent-smtp/includes/Core/Container.php on line 786
       ```
   
 * Here are some infos about this message:
    [https://php.watch/versions/8.0/deprecated-reflectionparameter-methods#getClass](https://php.watch/versions/8.0/deprecated-reflectionparameter-methods#getClass)
 * Please fix this.
    If you need more information, let me know! Thanks!
 * Regards,
    Zoker
    -  This topic was modified 5 years, 3 months ago by [Zoker](https://wordpress.org/support/users/zoker/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated/#post-14332452)
 * Hey. Will just chip in, that when using the latest 1.1.1 release I still get 
   a similar error.
 * `Deprecated: Method ReflectionParameter::getClass() is deprecated in /home/oldrupdk/
   oldrup.net/wp-content/plugins/fluent-smtp/includes/Core/Container.php on line
   819`
 * Will happily test a fully PHP 8 compatible release when ever possible.
 * Kind regards
    Bjarne
 *  Plugin Author [Shahjahan Jewel](https://wordpress.org/support/users/techjewel/)
 * (@techjewel)
 * [5 years ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated/#post-14486783)
 * We have fixed the issue in our latest version. Now it’s 100% compatible with 
   PHP 8.0
 *  [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [5 years ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated/#post-14487052)
 * Tested on multisite with php 8, smtp mail, tls encryption, resend and logging–
   green across the board. Good job!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Method ReflectionParameter::getClass() is deprecated’ is closed to new
replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated/#post-14487052)
 * Status: resolved