Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm integration #80

Merged

Conversation

konarshankar07
Copy link
Contributor

Signed-off-by: Shankar Konar [email protected]

Q A
Documentation no
Bugfix no
BC Break no
New Feature no
RFC no
QA yes

Description

Psalm integration added

@konarshankar07 konarshankar07 mentioned this pull request Oct 9, 2021
8 tasks
@boesing boesing added hacktoberfest-accepted Issues/Pull-Requests which can be fixed during Hacktoberfest: https://hacktoberfest.digitalocean.com Enhancement labels Oct 10, 2021
@boesing
Copy link
Member

boesing commented Oct 10, 2021

Thanks, @konarshankar07
We have to add the new CI pipeline to this package before we can merge this.
Anyways, thanks for your efforts! This will still count for hacktoberfest due to the hacktoberfest-accepted label 👍🏼

@samsonasik might handle the next steps of this, he might have plans on how to proceed with this component.

@boesing boesing linked an issue Oct 10, 2021 that may be closed by this pull request
8 tasks
@konarshankar07
Copy link
Contributor Author

Hello @boesing
If you provide the steps to add the new CI pipeline then I can implement that too. I guess you are going to implement the github actions for the CI pipeline
Thanks

@froschdesign
Copy link
Member

@boesing
The CI workflow is already there, see at the 2.12.x branch:

This branch is 30 commits ahead, 1 commit behind 3.0.x.

https://github.com/laminas/laminas-view/blob/2.12.x/.github/workflows/continuous-integration.yml

Some cleanup is needed: #71

@froschdesign
Copy link
Member

@konarshankar07
Please use the 2.12.x as target branch for this pull request. Thanks!

@konarshankar07 konarshankar07 changed the base branch from 3.0.x to 2.12.x October 11, 2021 06:40
@froschdesign froschdesign marked this pull request as draft October 11, 2021 07:18
@Ocramius
Copy link
Member

Seems like our own deprecations are at fault with the failure here :|

@boesing
Copy link
Member

boesing commented Oct 11, 2021

Seems like our own deprecations are at fault with the failure here :|

actually this is due to the phpunit change regarding deprecationsToExceptions.
The Tests which fail are to ensure the the deprecation will be triggered (just not that well implemented) and these now fail in latest phpunit.

@konarshankar07
Copy link
Contributor Author

@boesing @Ocramius
Yes, I have fixed this here laminas/laminas-crypt@034976e already and will do the same

@konarshankar07 konarshankar07 marked this pull request as ready for review October 12, 2021 06:39
@froschdesign froschdesign added this to the 2.13.0 milestone Oct 12, 2021
Copy link
Member

@boesing boesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, LGTM - just a few adjustments so we can avoid suppressions.

Another thing is, that it seems that we only have less than 20 errors in this projects. Would you mind fixing these so we end up having 100% typed code rather than suppressing these few errors via baseline? That would really be appreciated 🙏🏼

.psalm.xml.dist Outdated Show resolved Hide resolved
.psalm.xml.dist Outdated Show resolved Hide resolved
@weierophinney weierophinney changed the base branch from 2.12.x to 2.13.x October 12, 2021 17:40
This patch runs auto-fixes as suggested by Psalm, and establishes an initial baseline.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Psalm autofixes added nullable scalar typehint to an argument, and a return type hint, which each would change the signature.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney merged commit 0458742 into laminas:2.13.x Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement hacktoberfest-accepted Issues/Pull-Requests which can be fixed during Hacktoberfest: https://hacktoberfest.digitalocean.com
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Psalm integration
5 participants