2023/01/12/phpstan-disallow-assign-in-conditional-rule
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
PHPStan - Creating a rule to disallow assignments in a conditional expression | Daniel Opitz - Blog
PHPStan is a great tool for catching common mistakes and bugs in your PHP code, but sometimes you may need to create your own custom rules to catch specific issues. One common issue that can be hard to catch is accidental assignments in conditionals. In this post, I will show you how to create a custom rule in PHPStan to catch this issue.
https://odan.github.io/2023/01/12/phpstan-disallow-assign-in-conditional-rule.html
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked PHPStan article, https://odan.github.io/2023/01/12/phpstan-disallow-assign-in-conditional-rule.html, and compare it with the issue title. The issue does not name a file, test, repository change, or acceptance criteria, so what constitutes done needs clarification before work can begin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- content, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100