Expects Mockery\Expectation, PHPStan\Mockery\Type\Expects given.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the minimal Mockery example in the issue and reproduce it against v0.11.3. Trace how PHPStan\Mockery\Type\Expects is inferred for expect('call') and compare it with the Mockery\Expectation parameter in assertSth(); done means the reported type error is resolved without weakening the example's type checking.
Written by the indexing model from the issue text.
Description
$mock = Mockery::mock(MyClass::class);
$expectCall = $mock->expect('call');
self::assertSth($expectCall);
...
private function assertSth(Expectation $expectCall) : void
{
$expectCall->once();
}
Gives
Parameter #1 $expectCall of method Ns\ClassTest::assertSth() expects Mockery\Expectation, PHPStan\Mockery\Type\Expects given.
v0.11.3
- Dominant language
- PHP
- Stars
- 109
- Forks
- 25
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 1
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-mockery
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
phpstan/phpstan-mockery#78 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
phpstan/phpstan-mockery#77 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
phpstan/phpstan-mockery#55 · 1 comment · 1 reaction ·
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 10/100
phpstan/phpstan-mockery#46 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
phpstan/phpstan-mockery#34 · 1 comment ·
All issues in phpstan/phpstan-mockery
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
matomo-org/device-detector#8405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 4 days