sascha-egerer / phpstan-typo3

TYPO3 CMS class reflection extension for PHPStan & framework-specific rules
MIT License
42 stars 22 forks source link

[FEATURE] Add rule to check if service is private #152

Closed sabbelasichon closed 8 months ago

sabbelasichon commented 9 months ago

In order to have something similar to https://github.com/phpstan/phpstan-symfony/blob/1.4.x/src/Rules/Symfony/ContainerInterfacePrivateServiceRule.php in the repository

So if you have calls inside your code to get private services from the container (Service Locator Pattern) you will get a phpstan error.