Closed vjik closed 9 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ❌ |
Breaks BC? | ❌ |
New Job Configuration Added for Psalm80
A new job by the name psalm80
has been added which uses a different set of rules for 'Psalm'. 'Psalm' is a tool to identify errors in PHP code. This job is specifically created for PHP version 8.0. The configurations for this job are specified in the new psalm80.xml
file.
Updated Psalm Package Version
The version of the Psalm tool that we use has been updated in our composer.json
file. The package versions have been updated to ^4.30|^5.21
from ^4.30|^5.6
. This means we are now using a newer and improved version of the Psalm tool.
New Issue Handlers in Psalm Configuration
We have added new issue handlers in our 'Psalm' tool configuration. These are MixedAssignment
and RiskyTruthyFalsyComparison
. Adding these will help us identify a wider range of potential errors in our code.
Created Psalm80.xml file
A new psalm80.xml
file has been created. This file includes a specific configuration for PHP version 8.0. It specifically includes suppressing the MixedAssignment
issue which can be more lenient in running checks for the PHP 8.0 version. It is important to note that suppression of certain issues is sometimes required to ensure that only important potential problems are flagged.