Micro-PHP / Micro-PHP/lib-dependency-injection

Invalid comment for the method: DependencyInjection\Container::decorate() expects callable()

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.