Comments (3)
Hi @VincentLanglet,
I simplified the problem to this https://psalm.dev/r/2d3d231b58
Maybe psalm should handle this case. @muglug what do you think?
from psalm-plugin-symfony.
@VincentLanglet thank you for the report.
Is it something that can be improved in the symfony plugin (and how ?) or should psalm be more careful with the parent constructor ? @seferov @muglug
Since normalizeOptions method in parent class is a little obscure I don't think psalm itself should be able to handle this but
it can be fixed by the plugin either stubbing Constraint class returning options as it is instead of any array or using plugin hooks. I need to test it to be sure.
from psalm-plugin-symfony.
Since normalizeOptions method in parent class is a little obscure I don't think psalm itself should be able to handle this but
it can be fixed by the plugin either stubbing Constraint class returning options as it is instead of any array or using plugin hooks. I need to test it to be sure.
Hi @seferov, did you find some time to take a look ? :)
from psalm-plugin-symfony.
Related Issues (20)
- Default repo branch HOT 3
- RuntimeException with !tagged_locator using
- Support Psalm 5 HOT 4
- Add a Command::getHelper dynamic return type resolver
- I get PropertyNotSetInConstructor when extending the symfony Response class HOT 3
- PossiblyUnusedMethod __construct for dependency injected classes HOT 2
- Symfony's Configurator functions `env()` and `param()` not found HOT 4
- MissingTemplateParam for Form classes with data_class HOT 6
- Error with form event listeners HOT 11
- Error type form: FormType cannot be cast to string HOT 4
- Console: Wrong type for required argument value
- Please make a new release on 4.x branch
- Issues with usage detection even after container xml is provided HOT 1
- AbstractController allow render template with FormInterface HOT 1
- Override visibility of AbstractController createForm
- False positive PrivateService issue for `doctrine` ID
- Add issue for event listener pointing to wrong method name
- Unnecessary/incorrect Symfony Form stubs HOT 3
- Default repo branch HOT 4
- Taint analysis of twig files throws Uncaught RuntimeException: Can not retrieve template parameters from given expression (PhpParser\Node\Expr\FuncCall)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psalm-plugin-symfony.