https://bugs.winehq.org/show_bug.cgi?id=56707
Bug ID: 56707 Summary: AppDB PHP8 rewrite Product: WineHQ Apps Database Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: appdb-unknown Assignee: wine-bugs@winehq.org Reporter: jnewman@codeweavers.com Distribution: ---
The current codebase is not compatible with PHP8. We are stuck on 7.4.
The main issue is how all the objects are setup. PHP8 requires you define a constructor as __construct, but the AppDB is using the old method of naming the constructor the same as the object itself. While you could just rename all those to __construct, there are places in the objects where the code refers to $this->className(), these would need to be changed to $this->__construct() or parent::__construct if called from a child class
There are other PHP8 issues to be solved as well. Things like some built in functions changing how the null type is handled.