phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

833
active users

Hey users, how your baseline big ?

How many errors do you ignore in your static analysis ?

@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.