@sinemacula/coding-standards 1.19.1 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -84,6 +84,11 @@ parameters:
84
84
  - tests
85
85
  ```
86
86
 
87
+ The base config enables PHPStan's checked-exception analysis: every exception a method can throw must appear in its
88
+ `@throws` tag, except a configured set of programming-error and infrastructure exceptions that stay unchecked - the
89
+ `LogicException`, `RuntimeException` and `Error` families among them (see `php/phpstan-base.neon` for the full list).
90
+ Suppress a deliberate case with `@phpstan-ignore missingType.checkedException`.
91
+
87
92
  #### Laravel projects
88
93
 
89
94
  For Laravel projects, also install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinemacula/coding-standards",
3
- "version": "1.19.1",
3
+ "version": "1.20.1",
4
4
  "description": "Centralized coding standards, static analysis configurations, and code quality tooling for all Sine Macula repositories.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Ben Carey <bdmc@sinemacula.co.uk>",