Open szepeviktor opened 4 years ago
e.g. defined( 'ABSPATH' ) || exit;
properly and testable looks like
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
PHPStan is able to detect problems hidden for the human eye.
Interesting, I was thinking about using PHPCS along with WP code formatting config. Thanks for you feedback.
Please try running @phpstan on raising levels.
phpstan.neon.dist