@Findus23 opened this Issue on July 6th 2020 Member

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:


  • [x] #16312 plugins/Actions/ArchivingHelper.php on line 374
  • [x] #16313 don't log silenced errors in php8

In 3rd-party-libraries:

  • [x] 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

    I still don't know DI, so I can't say much about it

Will be fixed with https://github.com/PHP-DI/PHP-DI/issues/727 and https://github.com/matomo-org/matomo/issues/15974 (PR: https://github.com/matomo-org/matomo/pull/16311)

to be continued ...

@sgiehl commented on August 18th 2020 Member

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...

@sgiehl commented on October 13th 2020 Member

Closing for now as there is nothing remaining atm.

@Findus23 commented on October 13th 2020 Member

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.

This Issue was closed on October 13th 2020
Powered by GitHub Issue Mirror