Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deps and lint #90

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
Tests for WordPress version compatibility.
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties
-->
<config name="minimum_supported_wp_version" value="5.7"/>
<config name="minimum_wp_version" value="5.7"/>

<!-- Rules: WPGraphQL Coding Standards -->
<!-- https://github.com/AxeWP/WPGraphQL-Coding-Standards/WPGraphQL/ruleset.xml -->
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to a modified version of [Semantic Versioning](./README.md#updating-and-versioning).

## Unreleased

- chore: Update Composer dependencies.
- chore: Update WPGraphQL Coding Standards to v2.0.0-beta and lint.

## [0.1.3] - 2023-8-20

This release includes a refactored Admin JS package for backwards-compatibility and stability, new features and developer hooks extend and customize the authentication lifecycle, and a handful of bug fixes.
Expand Down
8 changes: 4 additions & 4 deletions access-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
/**
* Get an option value from the plugin settings.
*
* @param string $option_name The key of the option to return.
* @param mixed|false $default The default value the setting should return if no value is set.
* @param string $option_name The key of the option to return.
* @param mixed|false $default_value The default value the setting should return if no value is set.
*
* @uses \WPGraphQL\Login\Utils\Utils::get_setting()
*
* @return mixed
* @since 0.0.1
*/
function graphql_login_get_setting( string $option_name, $default = '' ) {
return Utils::get_setting( $option_name, $default );
function graphql_login_get_setting( string $option_name, $default_value = '' ) {
return Utils::get_setting( $option_name, $default_value );
}
}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"phpstan/extension-installer": "^1.1",
"szepeviktor/phpstan-wordpress": "^1.1.5",
"php-stubs/woocommerce-stubs": "^8.0",
"axepress/wp-graphql-stubs": "^1.12.0",
"axepress/wp-graphql-cs": "^1.0.0-beta",
"axepress/wp-graphql-stubs": "1.12.0",
"axepress/wp-graphql-cs": "^2.0.0-beta",
"wp-cli/wp-cli-bundle": "^2.8.1",
"php-coveralls/php-coveralls": "^2.5"
},
Expand Down Expand Up @@ -123,10 +123,10 @@
"php ./vendor/bin/phpcs -i"
],
"check-cs": [
"php ./vendor/bin/phpcs src"
"php ./vendor/bin/phpcs"
],
"fix-cs": [
"php ./vendor/bin/phpcbf src"
"php ./vendor/bin/phpcbf"
],
"phpstan": [
"vendor/bin/phpstan analyze --ansi --memory-limit=1G"
Expand Down
Loading
Loading