mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2025-01-23 05:21:11 +01:00
patriziawacht
5e53558c97
check services from cached container service file (#7)
* load with $config ContaimerServicefile, parse service<=>class * fix psalm messages, optimize code * debug plugin-config take only for symfony-psalm-plugin, some optimizations cache servicemap * Housekeeping fix psalm * Update ClassHandler.php Co-authored-by: Farhad Safarov <farhad.safarov@gmail.com>
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.
Credits
Languages
Gherkin
54.2%
PHP
45.8%