Rule about bitwise operator
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the existing numericOperandsInArithmeticOperators rule and the linked phpstan-strict-rules pull request #273. The issue does not name a file or test; the work is done when the maintainers decide whether bitwise operands should be numeric or integer and the corresponding rule is specified and implemented with tests.
Written by the indexing model from the issue text.
Description
Currently the is a numericOperandsInArithmeticOperators but nothing about bitwise operator.
Should we introduce a numericOperandsInBitwiseOperators ?
Should we even be stricter and introduce integerOperandsInBitwiseOperators ?
(Since bitwise works on integer bits).
Your call @ondrejmirtes
I prefer to ask before starting implementing the follow of https://github.com/phpstan/phpstan-strict-rules/pull/273
- Dominant language
- PHP
- Stars
- 711
- Forks
- 62
- Avg merge
- 35m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from phpstan/phpstan-strict-rules
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-strict-rules#317 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-strict-rules#316 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
phpstan/phpstan-strict-rules#298 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
phpstan/phpstan-strict-rules#289 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phpstan/phpstan-strict-rules#283 · 6 comments ·
All issues in phpstan/phpstan-strict-rules
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Broken pathsOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Automattic/custom-metadata#167 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day