Skip to content

Commit b71c365

Browse files
committed
chore: restore excluded PHPCS rules
1 parent eb824fd commit b71c365

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<!-- What to scan: include any root-level PHP files, and the /src folder -->
66
<file>./access-functions.php</file>
77
<file>./activation.php</file>
8-
<file>./deactivation.php</file>
98
<file>./constants.php</file>
9+
<file>./deactivation.php</file>
1010
<file>./wp-graphql.php</file>
1111
<file>./src</file>
1212
<exclude-pattern>./phpstan/*</exclude-pattern>
@@ -65,7 +65,6 @@
6565
<exclude name="WordPress.WP.Capabilities.Undetermined" />
6666

6767
<!-- This would be a breaking change to fix-->
68-
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
6968
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter" />
7069
</rule>
7170

@@ -157,7 +156,6 @@
157156
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation" />
158157

159158
<!-- Should probably be added back. -->
160-
<exclude name="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing" />
161159
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
162160
</rule>
163161

src/Data/Connection/AbstractConnectionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public function should_execute() {
462462
*
463463
* @return int|mixed
464464
*/
465-
public function get_offset_for_cursor( string $cursor = null ) { // phpcs:ignore PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated -- This is a breaking change to fix.
465+
public function get_offset_for_cursor( string $cursor = null ) { // phpcs:ignore PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated,SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue -- This is a breaking change to fix.
466466
$offset = false;
467467

468468
// We avoid using ArrayConnection::cursorToOffset() because it assumes an `int` offset.

src/Data/Loader/AbstractDataLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,5 +504,5 @@ protected function get_model( $entry, $key ) {
504504
*
505505
* @return array<int|string,mixed>
506506
*/
507-
abstract protected function loadKeys( array $keys );
507+
abstract protected function loadKeys( array $keys ); // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- @todo deprecate for `::load_keys()`
508508
}

0 commit comments

Comments
 (0)