Skip to content

feat: productAttributes query implemented #317

feat: productAttributes query implemented

feat: productAttributes query implemented #317

Triggered via pull request November 6, 2024 23:54
Status Failure
Total duration 1m 31s
Artifacts

code-quality.yml

on: pull_request
Testing WooGraphQL code quality w/ PHPStan
1m 22s
Testing WooGraphQL code quality w/ PHPStan
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
Testing WooGraphQL code quality w/ PHPStan: includes/data/connection/class-product-attribute-connection-resolver.php#L74
Property WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver::$type (string) does not accept string|null.
Testing WooGraphQL code quality w/ PHPStan: includes/data/connection/class-product-attribute-connection-resolver.php#L92
Method WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver::get_items() is unused.
Testing WooGraphQL code quality w/ PHPStan: includes/data/connection/class-product-attribute-connection-resolver.php#L99
Property WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver::$type (string) does not accept string|null.
Testing WooGraphQL code quality w/ PHPStan: includes/data/connection/class-product-attribute-connection-resolver.php#L124
Property WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver::$type (string) does not accept string|null.
Testing WooGraphQL code quality w/ PHPStan: includes/data/connection/class-product-attribute-connection-resolver.php#L206
Method WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver::build_connection() never returns array so it can be removed from the return type.
Testing WooGraphQL code quality w/ PHPStan: includes/type/interface/class-product-with-attributes.php#L84
Class WPGraphQL\WooCommerce\Data\Connection\Product_Attribute_Connection_Resolver constructor invoked with 0 parameters, 4-5 required.
Testing WooGraphQL code quality w/ PHPStan
Process completed with exit code 1.
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/