First of all,
sorry I post here, because I confuse to select the forum category, wether to put here or into petition.
I just found ClassicPress couple days ago, while doing some polyglot translation at wordpress.org. I already use wp since 2009 and modify some theme and plugins for personal use and my clients. Most of theme heavily modified because I need to meet the SEO requirements.
I already install CP at my localhost. It’s smooth and OK, no error found. I did some commenting and creating new post, for those simple functions, CP is OK.
My box configs are Debian 11 Bullseye, PHP8.0-FPM, nginx, Mariadb 10.6, Galera 4.
I already forking the github repo and doing some checking using PHPStan. For the time being, I already find some suggestions. FYI, I already tried couple of tools, but only PHPStan and PHPUnit that easy enough and can support my projects.
Please see my fork repo at https://github.com/steamboatid/ClassicPress.
I already check all of files in the root directory, and couple of file in the wp-includes.
Please give me your opinion about static analysis using PHPStan. If you agree, I will continue the checking, including fixing the code starting from wp-includes, then continue to wp-admin, and wp-content.
For the time being, I only use level 3, of course with some exclusions. (Please see the phpstan.neon file)
If this succeded, we can continue to higher level later, but I think level 5 is more than enough. In fact, all of my project only valid at level 3.
maybe we can continue our effort to check all of the plugin and theme. Especially the plugin and theme that listed in the CP website.
That’s all for now, please give your opinion and thought about PHPStan.
I’m just an old guy who try to catch the bullet train. LOL.