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

markus staab

learnt to narrow result types when joins are used.

it narrows e.g. integer ranges and also takes nullability into account.

feedback welcome

github.com/staabm/phpstan-dba/

@markusstaab Any specific reason for uppercase SELECT keyword but lowercase FROM and JOIN keywords?

@htto not really.

in sql there is no fixed casing.

in a real app (not my test-suite for this tool) I would probably use some kind of code-style tool to fix keywords in queries