Closed (fixed)
Project:
Flysystem - S3
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2023 at 15:42 UTC
Updated:
18 Jan 2024 at 14:19 UTC
Jump to comment: Most recent
Gitlab is still raising PHPCS issues and has started to raise PHPStan issues.
We should fix these to make it easier to spot when new issues are flagged by Gitlab CI.
Read the output at https://git.drupalcode.org/project/flysystem_s3/-/jobs/501985 and https://git.drupalcode.org/project/flysystem_s3/-/jobs/501986.
Fix the things.
All the things.
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
eli-tMR 15 fixes the PHPCS issues.
I'm thinking about splitting this issue as fixing all the PHPStan issues will necessitate potentially breaking backwards compatibility.
Comment #4
eli-tComment #5
eli-tWith respect to #3409514-3: Fix PHPCS and PHPStan issues reported by Gitlab CI and having read Drupal's BC policy especially concerning constructors being considered internal, I think we can resolve all the PHPCS and PHPStan issues without forcing a new release.
Comment #6
thakurnishant_06 commentedHello @Eli-T,
I ran the pipeline, and no errors were reported. However, when I ran PHPStan locally with level 0, it highlighted many errors and warnings.
Comment #7
eli-tThanks @thakurnishant_06
Are you sure you are running phpstan against the fork used by the merge request?
Running locally with level 0 I get
Comment #8
eli-t@thakurnishant_06 If you are definitely running against the correct code can you please share your full phpstan.neon and your output of running phpstan?
Comment #9
thakurnishant_06 commentedHi @Eli-t,
Apologies for the delayed response. Here are the warnings and errors reported by PHPStan when i ran it locally.
Comment #10
eli-t@thakurnishant_06 looks like you haven't installed the composer dependencies?
Comment #11
thakurnishant_06 commented@Eli-T, I have installed all the dependencies required for PHPStan, but I'm still encountering errors in my local setup.
Comment #12
eli-tIt's not the dependencies for PHPStan that are the issue here, it's the dependencies for flysystem_s3 that are missing.
Comment #13
thakurnishant_06 commentedAdded the missing dependencies, executed the test, and verified that it doesn't raise any new errors.
The last pipe line run was also clean .
Moving it to RTBC.
Thank you.
Comment #14
thakurnishant_06 commentedComment #15
eli-tMoving back to needs review as I'd like someone using the module to check it for regression. There's no evidence that the module has actually been tested yet.
Comment #16
eli-tTested with no regressions found. Merged to 2.1.x.
Comment #17
eli-t