Closed hlecorche closed 2 years ago
Nice job! Please improve your commit message according to the contributing guide. It's hard to understand what you did and why.
The Psalm failures look weird :thinking:
The Psalm failures look weird 🤔
Yes, where does it see the word object
?
Probably in a dependency using the object
typehint that is not valid on PHP 7.1, because the job installs deps for PHP 8.0 but analyses for PHP 7.1
I fixed the CS. I would do a squash at the end.
@stof Is it a good solution to add phpVersion="8.0"
in psalm.xml
file ? Thanks.
With this addition, the problem is solved.
Well, analyzing based on PHP 7.1 is expected, as that's what the code needs to support. but that job should configure composer to resolve deps compatible with 7.1
@stof I can replace
jobs:
static-analysis:
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.1.1"
By
jobs:
static-analysis:
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.1.1"
with:
php-version: "7.1"
Everything will be executed in PHP 7.1 (Composer + psalm). Is it a good idea ?
My take on this: #366
Closing in favor of #366. Thank you for your attempt to fix the CI, though. 👍🏻
Fix #367