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>
2020-03-09 09:36:04 +03:00
2019-11-14 10:27:50 +03:00
2019-11-14 10:27:50 +03:00
2019-11-12 16:36:05 +03:00
2019-11-12 16:51:13 +03:00

Symfony Psalm Plugin

Build Status

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 for Symfony\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

Description
No description provided
Readme MIT 499 KiB
Languages
Gherkin 54.2%
PHP 45.8%