{"id":15287234,"url":"https://github.com/lookyman/phpstan-symfony","last_synced_at":"2025-10-07T01:31:15.877Z","repository":{"id":60774569,"uuid":"90368695","full_name":"lookyman/phpstan-symfony","owner":"lookyman","description":"*DEPRECATED* Symfony extension for PHPStan","archived":true,"fork":false,"pushed_at":"2018-06-25T19:09:09.000Z","size":57,"stargazers_count":42,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-24T03:14:18.767Z","etag":null,"topics":["controller","dependency-injection","php","php7","phpstan","static-analysis","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lookyman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-05T11:23:15.000Z","updated_at":"2023-01-28T20:29:16.000Z","dependencies_parsed_at":"2022-10-04T15:40:16.341Z","dependency_job_id":null,"html_url":"https://github.com/lookyman/phpstan-symfony","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fphpstan-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fphpstan-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fphpstan-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fphpstan-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lookyman","download_url":"https://codeload.github.com/lookyman/phpstan-symfony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235575693,"owners_count":19012156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["controller","dependency-injection","php","php7","phpstan","static-analysis","symfony"],"created_at":"2024-09-30T15:27:03.260Z","updated_at":"2025-10-07T01:31:15.484Z","avatar_url":"https://github.com/lookyman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED\n\nUse [phpstan/phpstan-symfony](https://github.com/phpstan/phpstan-symfony) instead.\n\n# Symfony extension for PHPStan\n\n## What does it do?\n\n* Provides correct return type for `ContainerInterface::get()` method,\n* provides correct return type for `Controller::get()` method,\n* notifies you when you try to get an unregistered service from the container,\n* notifies you when you try to get a private service from the container.\n\n## Installation\n\n```sh\ncomposer require --dev lookyman/phpstan-symfony\n```\n\n## Configuration\n\nPut this into your `phpstan.neon` config:\n\n```neon\nincludes:\n\t- vendor/lookyman/phpstan-symfony/extension.neon\nparameters:\n\tsymfony:\n\t\tcontainer_xml_path: %rootDir%/../../../var/cache/dev/appDevDebugProjectContainer.xml # or srcDevDebugProjectContainer.xml for Symfony 4+\n```\n\n## Limitations\n\nIt can only recognize pure strings or `::class` constants passed into `get()` method. This follows from the nature of static code analysis.\n\nYou have to provide a path to `appDevDebugProjectContainer.xml` or similar xml file describing your container.\n\n## Need something?\n\nI don't use Symfony that often. So it might be entirely possible that something doesn't work here or that it lacks some functionality. If that's the case, **PLEASE DO NOT HESITATE** to open an issue or send a pull request. I will have a look at it and together we'll get you what you need. Thanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookyman%2Fphpstan-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flookyman%2Fphpstan-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookyman%2Fphpstan-symfony/lists"}