fix: ID resolution made consistent across all edit and delete node mu… #300
code-quality.yml
on: pull_request
Testing WooGraphQL code quality w/ PHPStan
1m 32s
Annotations
10 errors and 1 warning
Testing WooGraphQL code quality w/ PHPStan:
includes/connection/class-orders.php#L185
Parameter #1 $callback of function array_map expects (callable(WC_Order): mixed)|null, 'absint' given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/data/mutation/class-order-mutation.php#L53
Cannot call method get_customer_id() on bool|WC_Order|WC_Order_Refund.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/data/mutation/class-order-mutation.php#L54
Parameter #1 $post_type of function wc_rest_check_post_permissions expects string, string|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-delete-items.php#L99
Parameter #5 $order_id of static method WPGraphQL\WooCommerce\Data\Mutation\Order_Mutation::authorized() expects int|null, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-delete-items.php#L117
Parameter #1 $id of class WPGraphQL\WooCommerce\Model\Order constructor expects int|WC_Data, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-delete-items.php#L134
Parameter #1 $id of class WPGraphQL\WooCommerce\Model\Order constructor expects int|WC_Data, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-delete.php#L100
Parameter #5 $order_id of static method WPGraphQL\WooCommerce\Data\Mutation\Order_Mutation::authorized() expects int|null, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-delete.php#L114
Parameter #1 $id of class WPGraphQL\WooCommerce\Model\Order constructor expects int|WC_Data, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-update.php#L101
Parameter #5 $order_id of static method WPGraphQL\WooCommerce\Data\Mutation\Order_Mutation::authorized() expects int|null, int|false given.
|
Testing WooGraphQL code quality w/ PHPStan:
includes/mutation/class-order-update.php#L113
@param int $order_id does not accept actual type of parameter: int|false.
|
Testing WooGraphQL code quality w/ PHPStan
The following actions use a deprecated Node.js version and will be forced to run on node20: styfle/cancel-workflow-action@0.11.0, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|