Zeljko Mitic

Results 49 comments of Zeljko Mitic

@aszenz Yes, I see it now. I forgot to `@return FormConfigBuilderInterface`. I can make a fix in 2-3 days but can you brute-edit [this file](https://github.com/psalm/psalm-plugin-symfony/blob/4.x/src/Stubs/common/Component/Form/FormConfigBuilderInterface.stubphp#L25) and add ```php * @return...

OK, my bad; I just noticed you were using ```php $builder->add()->addEventListener() ``` and I miss-read it as ```php $builder->addEventListener()->addEventListener() ``` --- To help me the fix, can you put entire...

@VincentLanglet >Other tools (for instance PHPStan) will not support this generic until someone add the same in phpstan-symfony (but the risk is to have someone providing a different template...) The...

>You mean that if CustomerType is a FormType, then $this->createForm(CustomerType::class) should return FormType and then getData will return Foo ? I'm not sure bout the support of PHPStan, I would...

Good idea, it makes perfect sense. But why return nullable `FormInterface`? `FormInterface:getData` already returns `null|TData`. It has to, because create methods don't pass $data parameter, which then triggers `empty_data` callback.

It is not what you asked for, but I would still recommend to use either the [default callbacks](https://symfony.com/blog/new-in-symfony-5-2-form-mapping-callbacks), or much better [rich-forms-bundle](https://github.com/qossmic/rich-model-forms-bundle/blob/main/docs/mapping.md): ```php 'write_property_path' => fn (Foo $foo, string $bar)...

@7-zete-7 Just FYI, this solution worked perfectly. Thank you.

Sorry, one more question. It turned out that Chrome driver has issues with Amazon captcha and I want to try Firefox. How do I install it? I tried many combinations...

Solved it in this way: https://psalm.dev/r/c2e95cddfb It is minor bug for a rare case so I suggest closing the issue.