Closed VincentLanglet closed 2 years ago
Friendly ping @nicolas-grekas @fabpot.
Would you agree to merge such a PR in this repository in order to fix some static analysis (and also narrow the API) issue about the return type of MutableAclProviderInterface::findAcl
or should we find a solution with psalm-symfony and phpstan-symfony repository ?
Also, should I target main or 3.1 branch ?
Thanks
Also, should I target main or 3.1 branch ?
The main branch is fine.
Thanks Vincent!
Hi @nicolas-grekas
I assume
MutableAclProviderInterface::findAcl
is supposed to returnMutableAclInterface
(and same for findAcls) but currently sinceMutableAclProviderInterface
extendsAclProviderInterface
, it inherit of the same phpdoc for those method so return only anAclInterface
.This would avoid phpstan-symfony (and psalm-symfony) plugin to introduce some stub about those file.
Related phpstan issue: https://github.com/phpstan/phpstan-symfony/issues/183 Related psalm issue: https://github.com/psalm/psalm-plugin-symfony/issues/189