Unit/System Tests Composer Dependency Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
21 Jul 2024

Summary of Changes

This PR adds the phpstan static code analyser to our composer dependencies and to our drone setup. It is configured to ignore a series of false positives and to list all deprecations as well. Its configuration file is excluded from the build script. For now phpstan is only set to scan in level 0. When all reports from that are fixed, we can raise that level gradually. Since phpstan will throw failures for a long time, failures are set to be ignored in drone.

phpstan also allows to register a baseline of errors right now and then throw errors when the result differs from that baseline, but that is something for the future.

Testing Instructions

See phpstan step in drone and its results.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 21 Jul 2024
avatar Hackwar Hackwar - change - 21 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2024
Category Unit Tests Repository External Library Composer Change
avatar Hackwar Hackwar - change - 21 Jul 2024
Labels Added: Unit/System Tests Composer Dependency Changed PR-5.2-dev
avatar laoneo
laoneo - comment - 24 Jul 2024

To get the fully power of PHPStan, you should add a minimal bootstrap file to discover more symbols as I did in DPDocker here.

avatar laoneo
laoneo - comment - 14 Aug 2024

#43919 is a more enhanced alternative to this one.

avatar Hackwar Hackwar - change - 15 Aug 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-08-15 08:36:05
Closed_By Hackwar
avatar Hackwar
Hackwar - comment - 15 Aug 2024

Since we have a better version of this, closing this one. Thanks @laoneo!

avatar Hackwar Hackwar - close - 15 Aug 2024

Add a Comment

Login with GitHub to post a comment