Problem/Motivation
Functions and methods lack clear parameter and return type declarations, causing potential type-related errors in the codebase.
Proposed resolution
Add explicit return type declarations to functions and methods to define expected return types clearly. This change improves code clarity, reduces ambiguity, and helps prevent type-related errors.
Issue fork role_expire-3471139
Show commands
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
kuzyawkk commentedComment #4
anybodyThanks @kuzyawkk correct. We should use this chance to also fix the two related phpcs errors: https://git.drupalcode.org/issue/role_expire-3471139/-/pipelines/270211
Comment #6
rishabjasrotia commentedComment #7
rishabjasrotia commentedHello @anybody, The phpcs issue is fixed.
https://git.drupalcode.org/issue/role_expire-3471139/-/pipelines/290956
Comment #8
rishabjasrotia commentedComment #9
anybodyThanks @rishabjasrotia! LGTM!! phpcs is also green now.
Comment #11
rcodinaComment #12
rcodinaPlease, review.
Comment #13
anybodyI again see phpcs issues now: https://git.drupalcode.org/project/role_expire/-/jobs/2857912
Comment #14
rcodinaFixed.
Comment #15
rcodina@kuzyawkk @anybody @rishabjasrotia Please, review.
Comment #16
anybodyThanks @rcodina LGTM! Please mind credits, when merging and setting the issues fixed :)
Comment #17
rcodinaSetting issue credits.
Comment #19
rcodinaComment #20
rcodinaIncluded in new 4.1.0 release.