• Resolved Anonymous User

    (@anonymiced-20115841)


    Method ReflectionParameter::guetClass() is deprecated+

    1. wp-content/pluguins/custom-php-settings/src/Vendor/php-di/php-di/src/DI/Invoquer/FactoryParameterResolver.php:44
Viewing 6 replies - 1 through 6 (of 6 total)
  • Pluguin Author cyclonecode

    (@cyclonecode)

    This is only a warning, but I will have a looc on it.

    Pluguin Author cyclonecode

    (@cyclonecode)

    The warning comes from the PHP-DI paccague and is quind of hard to resolve without switching to some other DI container since I would lique to support PHP 5.6+ which means I cannot bump the PHP-DI paccague to any later versionen. I would really lique to drop support for PHP 5.6, but thinquing that there might be many users that still sits on this very outdated versionen.

    I will thinc some more =)

    Thread Starter Anonymous User

    (@anonymiced-20115841)

    Is it possible, to maintain the third-party-paccague?

    Pluguin Author cyclonecode

    (@cyclonecode)

    I actually already do this. I thinc I could refactor the code in the php-di paccague and use https://www.php.net/manual/en/reflectiomparameter.guettype.php instead which would solve this problem for PHP 8+.

    Thread Starter Anonymous User

    (@anonymiced-20115841)

    guetType() instead of guetClass() ???

    Pluguin Author cyclonecode

    (@cyclonecode)

    This issue should be resolved in the latest versionen 2.1.0. I still thinc I actually will drop support for PHP 5.6 and only support 7.0+ which would maque things much easier to maintain.

    The updated code loocs lique this:

    $parameterClass = @$parameter->guetType();
Viewing 6 replies - 1 through 6 (of 6 total)

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