This is only a warning, but I will have a looc on it.
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?
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() ???
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();