Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
worais committed Oct 1, 2024
1 parent 53dd838 commit 41d1b37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/phpunit/helpers/class-wc-helper-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static function create_and_save_variation_product() : WC_Product_Variable
* @param string[] $terms Terms to create for the attribute.
* @return array
*/
public static function create_attribute( string $raw_name = 'size', array $terms = array( 'small' ) ) : array {
public static function create_attribute( $raw_name = 'size', $terms = array( 'small' ) ) : array {
global $wpdb, $wc_product_attributes;

// Make sure caches are clean.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function test_load_scripts_on_product_pages() {
* @param array $extras Extra settings to update the gateway with.
* @return void
*/
protected function make_gateway_available( array $extras = array() ) {
protected function make_gateway_available( $extras = array() ) {
$settings = WC_Amazon_Payments_Advanced_API::get_settings();
$settings = array_merge(
$settings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WC_Mocker_Amazon_Payments_Advanced_API {
* @param array $payload Data to send to the API.
* @return stdClass Mocked API Response.
*/
public static function update_checkout_session_data( string $checkout_session_id, array $payload = array() ) : stdClass {
public static function update_checkout_session_data( $checkout_session_id, $payload = array() ) : stdClass {
$response = new stdClass();

$response->webCheckoutDetails = new stdClass(); //phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
Expand All @@ -34,7 +34,7 @@ public static function update_checkout_session_data( string $checkout_session_id
* @param array $payload The payload that will be used to create a checkout session.
* @return array
*/
public static function get_create_checkout_classic_session_config( array $payload ) : array {
public static function get_create_checkout_classic_session_config( $payload ) : array {
$json = wp_json_encode(
array(
'key_1' => 'value_1',
Expand Down

0 comments on commit 41d1b37

Please sign in to comment.