Skip to content

Commit fa8e300

Browse files
authored
fix: remove trailing commas from function calls (#768)
* fix!: update deps to required versions * fix: trailing commas not allowed in PHP 7.2
1 parent fedde04 commit fa8e300

File tree

10 files changed

+34
-34
lines changed

10 files changed

+34
-34
lines changed

README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== WP GraphQL WooCommerce ===
22
Contributors: kidunot89, ranaaterning, jasonbahl, saleebm
33
Tags: GraphQL, WooCommerce, WPGraphQL
4-
Requires at least: 4.9
4+
Requires at least: 5.9
55
Tested up to: 6.2
6-
Requires PHP: 7.1
7-
Requires WooCommerce: 4.8.0
6+
Requires PHP: 7.2
7+
Requires WooCommerce: 7.5.0
88
Requires WPGraphQL: 1.14.0+
99
Works with WPGraphQL-JWT-Authentication: 0.7.0+
1010
Stable tag: 0.14.1

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=7.1.0",
24+
"php": ">=7.2",
2525
"firebase/php-jwt": "^6.1.0"
2626
},
2727
"require-dev": {
2828
"automattic/vipwpcs": "^2.3",
29-
"axepress/wp-graphql-stubs": "^1.14",
30-
"php-stubs/woocommerce-stubs": "^7.7",
29+
"axepress/wp-graphql-stubs": "1.14.0",
30+
"php-stubs/woocommerce-stubs": "7.5.0",
3131
"phpstan/extension-installer": "^1.3",
3232
"phpstan/phpstan": "^1.10",
3333
"squizlabs/php_codesniffer": "^3.5",

composer.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function register_settings( Settings $manager ) {
3737

3838
$manager->settings_api->register_fields(
3939
'woographql_settings',
40-
General::get_fields(),
40+
General::get_fields()
4141
);
4242
}
4343
}

includes/class-core-schema-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function add_filters() {
120120

121121
add_filter(
122122
'woographql_cart_connection_definitions',
123-
[ __CLASS__, 'skip_cart_item_connection' ],
123+
[ __CLASS__, 'skip_cart_item_connection' ]
124124
);
125125
}
126126

includes/connection/class-product-attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function register_connections() {
3737
'toType' => 'LocalProductAttribute',
3838
'fromFieldName' => 'localAttributes',
3939
'connectionArgs' => [],
40-
],
40+
]
4141
)
4242
);
4343

includes/model/class-order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected function get_restricted_cap() {
243243
protected function get_viewable_order_types() {
244244
return apply_filters(
245245
'woographql_viewable_order_types',
246-
wc_get_order_types( 'view-orders' ),
246+
wc_get_order_types( 'view-orders' )
247247
);
248248
}
249249

includes/type/object/class-customer-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function get_fields( $other_fields = [] ) {
146146
},
147147
],
148148
],
149-
$other_fields,
149+
$other_fields
150150
);
151151
}
152152

phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<arg name="parallel" value="8"/><!-- Enables parallel processing when available for faster results. -->
1515
<!-- Rules: Check PHP version compatibility -->
1616
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
17-
<config name="testVersion" value="7.0-"/>
17+
<config name="testVersion" value="7.2-"/>
1818

1919
<!-- Rules: WordPress Coding Standards -->
2020
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
@@ -23,7 +23,7 @@
2323
<rule ref="WordPress-Extra" />
2424

2525
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
26-
<config name="minimum_supported_wp_version" value="4.9"/>
26+
<config name="minimum_supported_wp_version" value="5.9"/>
2727
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
2828
<properties>
2929
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->

wp-graphql-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* Domain Path: /languages
1111
* License: GPL-3
1212
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
13-
* WC requires at least: 4.8.0
14-
* WC tested up to: 7.5.1
13+
* WC requires at least: 7.5.0
14+
* WC tested up to: 7.8.2
1515
* WPGraphQL requires at least: 1.14.0+
1616
* WPGraphQL-JWT-Authentication requires at least: 0.7.0+
1717
*

0 commit comments

Comments
 (0)