Ruud Kamphuis
Ruud Kamphuis
@spawnia if you have time I'd like to hear your thoughts on this. 😊
@shmax I first want to know if this is a direction to be considered. Then I'd be happy to spend time on it and come up with a PR.
@shmax @spawnia Created a PR to resolve this issue: https://github.com/webonyx/graphql-php/pull/1426
@nicolas-grekas I'd like to give it a try. I just wonder what the best approach will be. The ReflectionClassResource is automatically added when something calls `ContainerBuilder::getReflectionClass`. https://github.com/symfony/symfony/blob/95fa158937318680e2ccca09539efca9a4405b48/src/Symfony/Component/DependencyInjection/ContainerBuilder.php#L344-L385 This method is...
Noticed the same, here a code sample that does it: ```twig {% extends 'base.html.twig' %} {% set layoutTitle = 'Home' %} {% block main %} Test {% endblock %} ```...
Thanks, that already looks better. Couldn't we use `object` for this? Like: `@return (K is key-of ? object : null)`
It's getting better but still not working properly: https://phpstan.org/r/e9ae422d-ab7f-400e-99df-f213c1022b09
Thanks! @ondrejmirtes is this something you would accept as a PR? @rvanvelzen would you want to submit this as a PR? If you don't want to I can do it...
The issue is that T is class-string, not an object of T. Introducing object would allow to type that. https://github.com/phpstan/phpstan/issues/9704#issuecomment-1660369960
That's even better!