You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is still quite a bit in the future until PHP 8 will be released, but as it is a major release removing and deprecating a lot of ancient features, one can not start early enough fixing things:
PHP-DI: ReflectionParameter::getClass() is deprecated
[06-Jul-2020 13:56:34 UTC] PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in /home/lukas/public_html/matomophp8/vendor/php-di/php-di/src/DI/Invoker/FactoryParameterResolver.php on line 43
https://github.com/php/php-src/pull/5209
I still don't know DI, so I can't say much about it
Private methods cannot be final as they are never overridden by other classes in /home/lukas/public_html/matomophp8/core/Singleton.php on line 27
Guess we could simply make the method public to prevent that error and maybe throw an Exception in the method that clone is not supported or something like that...
Now that I can test Matomo without getting hundreds of error messages per request, I can check the rest if something remains.
I'll reopen if I find something.
It is still quite a bit in the future until PHP 8 will be released, but as it is a major release removing and deprecating a lot of ancient features, one can not start early enough fixing things:
In Matomo:
https://php.watch/versions/8.0/deprecate-required-param-after-optional
Private methods cannot be final as they are never overridden by other classes in /home/lukas/public_html/matomophp8/core/Singleton.php on line 27
matomo/core/Singleton.php
Lines 27 to 29 in 1155273
In 3rd-party-libraries:
https://github.com/php/php-src/pull/5209
I still don't know DI, so I can't say much about it
Will be fixed with PHP-DI/PHP-DI#727 and #15974 (PR: #16311)
to be continued ...
The text was updated successfully, but these errors were encountered: