Closed szepeviktor closed 3 years ago
Many good improvements here.
I'd like to keep the ABSPATH
checks on a single line, please.
I do not have problems with it. You know I do this to practice using @phpstan and to blow off steam from client projects. So I close this one.
@szepeviktor 🤕 No reason to close it. Everything else was good!
I know. But @phpstan sees defined( 'ABSPATH' ) || exit;
as left side is always true.
Anyone may continue this work! :)
And there is
parameters:
dynamicConstantNames:
- ABSPATH
I've started fixing types using @PHPStan.
But to be strictly typed we need will! How about that?