-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing methods in ApplicationConfig #14
Comments
@SenseException Thanks for the report! Why should we add |
In puli/cli the following code exists: $this
->beginCommand('bind')
->setDescription('Bind resources to binding types')
->setHandler(function () use ($puli) {
return new BindCommandHandler(
$puli->getDiscoveryManager(),
$puli->getPackageManager()->getPackages()
);
})
->beginOptionCommand('add')
|
Could this be fixed by changing |
For now, I'll look if this can be fixed on puli/cli side by adding @var annotation because I agree on that Scrutinizer is misinterpreting code. |
Currently it seems that only |
@webmozart I tested the changes to It seems to work that way. Would you agree if I change |
@SenseException If you could test also with |
@webmozart The issues are back with I also tried it with |
Thanks for investigating. What's the current stance of the working group for the PhpDoc PSR on this topic? |
|
As per the PSR-5 docs,
Let's use it then. Could you get in touch with the Scrutinizer guys to see if they can support this? |
Okay, I'm on it. |
Thanks :) |
I asked in the scrutinizer-ci ticket if I can be of help by implementing this feature request in some kind of PR, but currently I don't expect an answer. |
No answer on any channel so far. I'll halt my work on this issue for now. |
Thanks for trying @SenseException. I'll close this, since I don't want to change code to accommodate for what seems like a bug in Scrutinizer. |
I haven't considered alternatives to Scrutinizer yet. Maybe that would be another (bigger) approach. |
During my work on a puli/cli ticket I get the following Scrutinizer bug message:
This may be an issue for projects switching from
CommandConfig
toApplicationConfig
.It looks like the classes in the Config namespace need an interface or some template methods in the abstract
Config
class.@webmozart: What would you prefer to make the classes replaceable by offering the same API?
The text was updated successfully, but these errors were encountered: