- Issue created by @darvanen
- ๐ฎ๐ณIndia amanbtr72
amanmansuri72 โ made their first commit to this issueโs fork.
- ๐ฆ๐บAustralia darvanen Sydney, Australia
@amanmansuri72 this issue is for phpstan, not phpcs. That effort belongs on ๐ Drupal Coding Standards Issues | phpcs Needs work .
- First commit to issue fork.
- ๐ฒ๐ฆMorocco h_kac
Hello,
I fixed some errors shown at level 2 to level 6 can u check that ?For the error below, I have checked the interface containing the signature of the function "get" we have only one param "CountryCode", I think we should remove the second param in the class
------ ------------------------------------------------------------------------------- Line src/Plugin/GraphQL/DataProducer/AddressFormatRepository.php ------ ------------------------------------------------------------------------------- 98 Method CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface::get() invoked with 2 parameters, 1 required. ------ -------------------------------------------------------------------------------
What do you think ?
- Status changed to Needs work
6 months ago 2:21am 24 June 2024 - ๐ฆ๐บAustralia darvanen Sydney, Australia
Hi h_kac, if you would like work to be reviewed, please open a MR and set the issue to 'Needs Review' :)
- Status changed to Needs review
6 months ago 8:28am 24 June 2024 - Status changed to Needs work
6 months ago 1:00pm 24 June 2024 - ๐ฎ๐ณIndia ankitv18
Changes in the MR aren't seems to be phpstan related.
cc: @darvanen
- ๐ฆ๐บAustralia darvanen Sydney, Australia
- Status changed to Needs review
6 months ago 4:00pm 25 June 2024 - Status changed to Needs work
6 months ago 4:03am 26 June 2024 - Assigned to ankitv18
- ๐ฎ๐ณIndia ankitv18
ankitv18 โ changed the visibility of the branch 3440876-increase-phpstan-level to hidden.
- Issue was unassigned.
- Status changed to Needs review
6 months ago 10:56am 26 June 2024 - ๐ฆ๐บAustralia darvanen Sydney, Australia
@ankitv18 I'm not really keen on duplicating method comments from parent classes just for the sake of passing higher levels of PHPStan. If we want to pass at that level we should see that the parent passes first (in the graphql module) and leave ours as @inheritdoc in my opinion.
Perhaps we should postpone this on that work? Otherwise I'm happy to commit a version with a lower level.
We will also need to comment out the various OPT_IN variables at the end of this as they are not to be run on every test in every issue. Advice I've recieved from several senior maintainers is to save those for final runs.
Thoughts?
- ๐ฎ๐ณIndia ankitv18
I'm also not committed with all these changes as I just pushed the commits to show the higher level of phpstan changes.
Anyways I'm reverting the changes and put the phpstan level to 2 and left the other required changes for phpstan apart from docblock.
- Status changed to RTBC
6 months ago 12:54am 29 June 2024 - ๐ฆ๐บAustralia darvanen Sydney, Australia
5 is great, let's leave it there for now. Thanks for this, it was quite the education for me.
@h_kac I'm going to give you a credit because you're quite new and I can see you were trying. Keep going! There are many ways to contribute. Also join Drupal Slack โ , it's a great way to see what's happening in the community.
-
darvanen โ
committed 2966d9b0 on 2.x authored by
ankitv18 โ
Issue #3440876 by ankitv18, h_kac, darvanen: Increase PHPStan level
-
darvanen โ
committed 2966d9b0 on 2.x authored by
ankitv18 โ
- Status changed to Fixed
6 months ago 12:55am 29 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.