Skip to content
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

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

Merged
merged 12 commits into from
Feb 28, 2024

Conversation

sabbelasichon
Copy link
Collaborator

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.

@sabbelasichon sabbelasichon force-pushed the task/add-container-private-rule branch 3 times, most recently from a4df992 to 7d5199e Compare February 6, 2024 14:39
@sabbelasichon sabbelasichon force-pushed the task/add-container-private-rule branch from 7d5199e to 1753adb Compare February 6, 2024 14:47
@sabbelasichon sabbelasichon changed the title [FEATURE] Add rule to check if service is private DRAFT: [FEATURE] Add rule to check if service is private Feb 6, 2024
@sabbelasichon sabbelasichon changed the title DRAFT: [FEATURE] Add rule to check if service is private [FEATURE] Add rule to check if service is private Feb 21, 2024
@sabbelasichon sabbelasichon merged commit b56a301 into master Feb 28, 2024
40 checks passed
@sabbelasichon sabbelasichon deleted the task/add-container-private-rule branch February 28, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants