phpstan-src
phpstan-src copied to clipboard
Conditional return type for `SQLite3Result::fetchArray()`
I'm aware that this change can be wrong or incomplete. I was wondering if there is a way in this project to do tests for types, for example https://github.com/azjezz/psl/blob/next/tests/static-analysis
You mean tests for types? Sure: https://phpstan.org/developing-extensions/testing#type-inference
Here most of them are in NodeScopeResolverTest.