Title: Method ReflectionParameter::getClass() is deprecated in PHP 8
Last modified: June 11, 2021

---

# Method ReflectionParameter::getClass() is deprecated in PHP 8

 *  Resolved [OakwoodGates](https://wordpress.org/support/users/oakwoodgates/)
 * (@oakwoodgates)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated-in-php-8/)
 * I want to report this error.
 * `PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in /wp-
   content/plugins/2fas-light/vendor/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.
   php on line 65`
 * Just to note, it looks like they have a beta3 release that supports PHP 8 – [https://github.com/PHP-DI/PHP-DI/releases](https://github.com/PHP-DI/PHP-DI/releases)–
   and a milestone for the prod release – [https://github.com/PHP-DI/PHP-DI/milestone/22](https://github.com/PHP-DI/PHP-DI/milestone/22)
 * Is this package needed in production? Is there a work-around for PHP 8? Thanks!

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

 *  Plugin Author [2FAS](https://wordpress.org/support/users/2fas/)
 * (@2fas)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated-in-php-8/#post-14557042)
 * Hi,
 * We will upgrade this package in next release in our plugin (probably in the next
   week).
 *  Plugin Author [2FAS](https://wordpress.org/support/users/2fas/)
 * (@2fas)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated-in-php-8/#post-14590852)
 * Hello again, we released version 3.3 witch includes updates for this issue, so
   you shouldn’t get this error.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/2fas-light_ffffff.svg)
 * [2FAS Prime — Two Factor Authentication](https://wordpress.org/plugins/2fas-light/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/2fas-light/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/2fas-light/)
 * [Active Topics](https://wordpress.org/support/plugin/2fas-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/2fas-light/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/2fas-light/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [2FAS](https://wordpress.org/support/users/2fas/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/method-reflectionparametergetclass-is-deprecated-in-php-8/#post-14590852)
 * Status: resolved