mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-26 20:04:58 +01:00
src | ||
tests | ||
.gitignore | ||
.travis.yml | ||
codeception.yml | ||
composer.json | ||
LICENSE | ||
psalm.xml | ||
README.md |
Symfony Psalm Plugin
Installation
composer require --dev seferov/symfony-psalm-plugin
vendor/bin/psalm-plugin enable seferov/symfony-psalm-plugin
Features
- Detect
ContainerInterface::get()
result type - Fixes
PossiblyInvalidArgument
forSymfony\Component\HttpFoundation\Request::getContent
. The plugin calculates real return type by checking the given argument and marks return type as either string or resource. - Complains when
Container
is injected to a service. Use dependency-injection.