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

[php] Try to follow Psalm tips #238

Merged

Conversation

olleolleolle
Copy link
Contributor

🤔 What's changed?

This PR is an experiment run, to see if Psalm's "find unused" can be tamed, to become useful.

⚡️ What's your motivation?

Psalm seems like a cool tool.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, documentation etc. without changing behaviour)

♻️ Anything particular you want feedback on?

Is this a viable path?

I downgraded a Property in a constructor to a regular positional parameter – this was due to a Psalm warning. Is that reasonable?

One error handler dealt with return values, when it looked like that wasn't what it usually did. I turned it into a regular "callbacky" thing, instead.

Well, any thoughts around keeping these Psalm checks enabled would be welcome. Also thoughts around "why this does not suit Gherkin".

📋 Checklist:

php/src/AstNode.php Outdated Show resolved Hide resolved
@olleolleolle olleolleolle marked this pull request as ready for review March 17, 2024 16:53
@mpkorstanje mpkorstanje merged commit 46f33b6 into cucumber:main Mar 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants