psalm-plugin-symfony
psalm-plugin-symfony copied to clipboard
Psalm Plugin for Symfony
Ref https://github.com/psalm/psalm-plugin-symfony/pull/220#issuecomment-945447558 The following code ``` class AppKernel extends Kernel { use MicroKernelTrait; public function __construct() { parent::__construct('test', true); } } ``` is giving a `PropertyNotSetInConstructor` error. @enumag @seferov do...
Psalm 4.21 crashes due to an uncaught Throwable in DoctrineRepositoryHandler: ``` Uncaught RuntimeException: PHP Error: ReflectionClass::__construct(): Passing null to parameter #1 ($objectOrClass) of type object|string is deprecated in /var/www/html/vendor/psalm/plugin-symfony/src/Handler/DoctrineRepositoryHandler.php:48 in...
Symfony changed its configuration recently - see https://github.com/symfony/symfony/issues/46546 psalm is now reporting: > PossiblyUndefinedMethod - config/packages/framework.php - Method Symfony\Config\FrameworkConfig::scopedClient does not exist So the workaround (``) I added in https://github.com/psalm/psalm-plugin-symfony/pull/203...
Related: https://github.com/psalm/psalm-plugin-symfony/pull/235 The changes to the InputBag sub is causing the following error: ``` ERROR: InvalidArgument - src/Controller/TestController.php:154:132 - Argument 2 of Symfony\Component\HttpFoundation\InputBag::get cannot be false, null|string value expected (see...
Can not retrieve template parameters from given expression, while doing taint analysis. I guess this is because some template parameters are resolved from a function call and we only check...
I use this plugin in the Sylius project, but this is not important (in my opinion). ```php $attributeValue = $formAttribute->getData(); Assert::isInstanceOf($attributeValue, ProductAttributeValueInterface::class); $attribute = $attributeValue->getAttribute(); return ( !$attribute->isTranslatable() || $attributeValue->getLocaleCode()...
Still the same issue as in #188 , tested with newest version (3.1.0), has existed since 2.3.1 (was never fixed): ``` Uncaught Exception: Webmozart\Assert\InvalidArgumentException Expected an integer. Got: boolean Emitted...
i am not 100% sure what kind of code is responsible for this exception but wenn running taint analysis on a codebase i work with i get this: ``` Uncaught...
the function [generateTemplateParameters](https://github.com/psalm/psalm-plugin-symfony/blob/2992656853b564fa18cdf45d446ecb80cbf7fa0b/src/Twig/AnalyzedTemplatesTainter.php#L114) just supports very basic array types. for exampe this code ends up in an exception: ``` this->templating->render('@xxxxx.html.twig', array_merge($commonParams, [])) ``` ``` this->templating->render('@xxxxx.html.twig', $commonParams + []) ``` https://github.com/psalm/psalm-plugin-symfony/blob/2992656853b564fa18cdf45d446ecb80cbf7fa0b/src/Twig/AnalyzedTemplatesTainter.php#L114
Code: ```php