Skip to content

2.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@justlevine justlevine released this 05 Nov 13:39
· 3 commits to main since this release
88b27c5

This release updates the ruleset based on the latest changes to WPGraphQL core (v1.18.0). Specifically:

WPGraphQL-Minimum

  • Added PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.objectFound.
  • Moved SlevomatCodingStandard.Classes.RequireSelfReference from WPGraphQL-Strict.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.LessSpecificNativeTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.Variables.UselessVariable from WPGraphQL-Extra.

WPGraphQL-Strict

  • Moved SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses from WPGraphQL-Extra.
  • Added SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.
  • Added SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.

WPGraphQL-Docs

  • AddedSquiz.Commenting subset of WordPress-Docs.
  • Added SlevomatCodingStandard.TypeHints.LongTypeHints.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing from WPGraphQL-Extra.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing from WPGraphQL-Extra.

WPGraphQL-Core

  • Added WPGraphQL-Docs with some exceptions.

Full Changelog: 2.0.0-beta.1...2.0.0-beta.2