Title: PHP 8.2 Problem
Last modified: March 30, 2024

---

# PHP 8.2 Problem

 *  Resolved Anonymous User
 * (@anonymized-20115841)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/)
 * Method ReflectionParameter::getClass() is deprecated+
    1. wp-content/plugins/custom-php-settings/src/Vendor/php-di/php-di/src/DI/Invoker/
       FactoryParameterResolver.php:44

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

 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17539548)
 * This is only a warning, but I will have a look on it.
 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17546437)
 * The warning comes from the PHP-DI package and is kind of hard to resolve without
   switching to some other DI container since I would like to support PHP 5.6+ which
   means I cannot bump the PHP-DI package to any later version. I would really like
   to drop support for PHP 5.6, but thinking that there might be many users that
   still sits on this very outdated version.
 * I will think some more =)
 *  Thread Starter Anonymous User
 * (@anonymized-20115841)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17549072)
 * Is it possible, to maintain the third-party-package?
 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17561737)
 * I actually already do this. I think I could refactor the code in the php-di package
   and use [https://www.php.net/manual/en/reflectionparameter.gettype.php](https://www.php.net/manual/en/reflectionparameter.gettype.php)
   instead which would solve this problem for PHP 8+.
 *  Thread Starter Anonymous User
 * (@anonymized-20115841)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17563673)
 * getType() instead of getClass() ???
 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17563759)
 * This issue should be resolved in the latest version 2.1.0. I still think I actually
   will drop support for PHP 5.6 and only support 7.0+ which would make things much
   easier to maintain.
   The updated code looks like this:
 *     ```wp-block-code
       $parameterClass = @$parameter->getType();
       ```
   

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

The topic ‘PHP 8.2 Problem’ is closed to new replies.

 * ![](https://ps.w.org/custom-php-settings/assets/icon-256x256.png?rev=2053893)
 * [Custom PHP Settings](https://wordpress.org/plugins/custom-php-settings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-php-settings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-php-settings/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-php-settings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-php-settings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-php-settings/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-2-problem-2/#post-17563759)
 * Status: resolved