Skip to content

Support PHP 8 #16183

@Findus23

Description

@Findus23

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:

final private function __clone()
{
}

In 3rd-party-libraries:

  • 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

Will be fixed with PHP-DI/PHP-DI#727 and #15974 (PR: #16311)


to be continued ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    TaskIndicates an issue is neither a feature nor a bug and it's purely a "technical" change.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions