File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
### Changed
10
10
* PHP: Remove ` minimum_supported_wp_version ` and ` testVersion ` .
11
+ * PHP: Introduce ` Required-Strict ` ruleset for stricter rules.
11
12
12
13
## [ 4.0.0] - 2022-12-08
13
14
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" Required-Strict" >
3
+ <description >required Strict Coding Standards</description >
4
+
5
+ <!-- Include everything from the default set. -->
6
+ <rule ref =" Required" />
7
+
8
+ <!-- Enforce having declare( strict_types=1 ) at the top of each PHP file. -->
9
+ <rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" >
10
+ <properties >
11
+ <property name =" declareOnFirstLine" value =" false" />
12
+ <property name =" linesCountBeforeDeclare" value =" 1" />
13
+ <property name =" linesCountAfterDeclare" value =" 1" />
14
+ <property name =" spacesCountAroundEqualsSign" value =" 0" />
15
+ </properties >
16
+ </rule >
17
+ </ruleset >
You can’t perform that action at this time.
0 commit comments