@sinemacula/coding-standards 1.19.1 → 1.20.0
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.
- package/README.md +5 -0
- 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 the `LogicException` and `RuntimeException` families, which stay unchecked (they model programming
|
|
89
|
+
errors and runtime failures that propagate freely). Suppress a deliberate case with
|
|
90
|
+
`@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.
|
|
3
|
+
"version": "1.20.0",
|
|
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>",
|