@jdecool - I have about 2000 errors in my baseline for about 250,000 lines of code. (Down from about 8000 when I started using phpstan.)
AFAICT, most are caused by two things:
1) I have an error-handler so functions like file_get_contents() will throw exceptions instead of returning false.
2) Every SQL query (Laravel QueryBuilder) gives a return type of mixed, and I don't see a way to tell it what columns/types are returned.
@fisharebest Thanks for your detailed answer