Micro-PHP / Micro-PHP/lib-dependency-injection
Invalid comment for the method: DependencyInjection\Container::decorate() expects callable()
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 6
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/Micro-PHP/lib-dependency-injection/blob/c2b1fc7ae8888a52e596968d8f7f8e3fef3dd91a/src/ContainerDecoratorInterface.php#L20
phpstan error example:
```
Parameter #2 $service of method Micro\Component\DependencyInjection\Container::decorate() expects callable(): Micro\Plugin\Http\Facade\HttpFacadeInterface, Closure(Micro\Plugin\Http\Facade\HttpFacadeInterface,
Micro\Framework\Kernel\KernelInterface): Micro\Plugin\Http\Facade\HttpFacadeInterface given.
```
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 at src/ContainerDecoratorInterface.php line 20 and compare the decorate() declaration with the PHPStan error example. Reproduce the reported analysis if possible; done when the declaration and supported callable shape no longer produce this invalid-comment error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100