Go to file
2020-01-03 07:45:29 +03:00
src Detect ContainerInterface::get() result type (#6) 2020-01-03 07:45:29 +03:00
tests Detect ContainerInterface::get() result type (#6) 2020-01-03 07:45:29 +03:00
.gitignore acceptance tests (#3) 2019-11-14 10:27:50 +03:00
.travis.yml Detect ContainerInterface::get() result type (#6) 2020-01-03 07:45:29 +03:00
codeception.yml acceptance tests (#3) 2019-11-14 10:27:50 +03:00
composer.json fix possible nullable inferred type (#4) 2019-12-04 15:02:53 +03:00
LICENSE initial commit 2019-11-12 16:36:05 +03:00
psalm.xml psalm config (#1) 2019-11-12 16:51:13 +03:00
README.md Detect ContainerInterface::get() result type (#6) 2020-01-03 07:45:29 +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