From 9eec99d6728df2670a588cf66d9c3f3eaefec2a8 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 1 Dec 2023 20:48:31 +0000 Subject: [PATCH] Add daily email for 2023-11-29 The lowest level is better than no level --- src/content/daily-email/2023-11-29.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/content/daily-email/2023-11-29.md diff --git a/src/content/daily-email/2023-11-29.md b/src/content/daily-email/2023-11-29.md new file mode 100644 index 00000000..bc45f7d6 --- /dev/null +++ b/src/content/daily-email/2023-11-29.md @@ -0,0 +1,26 @@ +--- +title: > + The lowest level is better than no level +pubDate: 2023-11-29 +permalink: > + archive/2023/11/29/the-lowest-level-is-better-than-no-level +tags: + - software-development + - clean-code + - static-analysis + - php + - phpstan +--- + +[Yesterday's email][yesterday] introduced the different levels that PHPStan offers and which you may want to use on your codebase. + +In the same way as having a single test is better than none, even if you run PHPStan at the lowest level, it's better than not running it at all. + +Level 0 includes: + +> Basic checks, unknown classes, unknown functions, unknown methods called on $this, wrong number of arguments passed to those methods and functions, always undefined variables + +P.S. If you want to utilise PHPStan and static analysis on your development team and get fewer bugs, I have [availability for team coaching][coaching]. I'll show you how! + +[coaching]: https://www.oliverdavies.uk/team-coaching +[yesterday]: https://www.oliverdavies.uk/archive/2023/11/28/which-phpstan-level-should-you-use