Admittedly, the original sin was naming github.com/nuwave/lighthouse just like the performance tool by Google.
Replying to @freekmurze
PHPStan inferred the type of the collection you are calling `map()` upon to have keys of `int|string` and values of `mixed`. The passed in closure expects more specific types, which violates contravariance. You need to prove the types within or loosen the closure parameter types.
2
Replying to @dmouse
Thank you, nice to hear it is serving you well. Is there something in the implementation or docs that you would like to see improved?
1
1
The plugin looks interesting, parts of it might make Lighthouse testing more ergonomic. lighthouse-php.com/master/te…
Integrating Laravel and GraphQL works nicely, concepts such as Policies can be shared. Conflating HTTP specifics did not work well, Lighthouse separates them clearly.
1
Replying to @sylarruby
Looks like @Netlify was having issues. They have not been too reliable lately.
1
1
Yup, Lighthouse uses union queries and then separates the results. There is some trickery with polymorphic types, but overall it is not too complicated.
2
1
I always make a composer script for phpstan with the common options and call it as `composer stan`
1
Replying to @mattstauffer
@mattstauffer Just saw your talk at Laracon, great stuff.
You inspired me to reach out and spread the word about Lighthouse, a GraphQL integration for Laravel. Would you be interested in collaborating on your podcast or some other way?
lighthouse-php.com
1
1


