Improve schema validation and sanitization #1078
lint.yml
on: pull_request
eslint, prettier, wp-scripts
47s
phpcs
21s
Psalm
17s
Dependaban
14s
Annotations
11 errors and 3 warnings
ParamNameMismatch:
inc/Config/ArraySerializable.php#L31
inc/Config/ArraySerializable.php:31:49: ParamNameMismatch: Argument 1 of RemoteDataBlocks\Config\ArraySerializable::from_array has wrong name $config, expecting $data as defined by RemoteDataBlocks\Config\ArraySerializableInterface::from_array (see https://psalm.dev/230)
|
UnusedClass:
inc/Config/QueryContext/GraphqlMutationContext.php#L7
inc/Config/QueryContext/GraphqlMutationContext.php:7:7: UnusedClass: Class RemoteDataBlocks\Config\QueryContext\GraphqlMutationContext is never used (see https://psalm.dev/075)
|
UnusedDocblockParam:
inc/Config/QueryRunner/QueryResponseParser.php#L19
inc/Config/QueryRunner/QueryResponseParser.php:19:25: UnusedDocblockParam: Docblock parameter $field_type in docblock for RemoteDataBlocks\Config\QueryRunner\QueryResponseParser::get_field_value does not have a counterpart in signature parameter list (see https://psalm.dev/319)
|
UnusedDocblockParam:
inc/Config/QueryRunner/QueryRunner.php#L232
inc/Config/QueryRunner/QueryRunner.php:232:19: UnusedDocblockParam: Docblock parameter $response_data in docblock for RemoteDataBlocks\Config\QueryRunner\QueryRunner::deserialize_response does not have a counterpart in signature parameter list (see https://psalm.dev/319)
|
InaccessibleMethod:
inc/Integrations/Shopify/ShopifyIntegration.php#L24
inc/Integrations/Shopify/ShopifyIntegration.php:24:36: InaccessibleMethod: Cannot access private method RemoteDataBlocks\Integrations\Shopify\Queries\ShopifySearchProductsQuery::__construct from context RemoteDataBlocks\Integrations\Shopify\ShopifyIntegration (see https://psalm.dev/003)
|
InaccessibleMethod:
inc/Integrations/Shopify/ShopifyIntegration.php#L25
inc/Integrations/Shopify/ShopifyIntegration.php:25:32: InaccessibleMethod: Cannot access private method RemoteDataBlocks\Integrations\Shopify\Queries\ShopifyGetProductQuery::__construct from context RemoteDataBlocks\Integrations\Shopify\ShopifyIntegration (see https://psalm.dev/003)
|
InaccessibleMethod:
tests/inc/Config/QueryContextTest.php#L16
tests/inc/Config/QueryContextTest.php:16:26: InaccessibleMethod: Cannot access private method RemoteDataBlocks\Config\QueryContext\HttpQueryContext::__construct from context RemoteDataBlocks\Tests\Config\QueryContextTest (see https://psalm.dev/003)
|
InaccessibleMethod:
tests/inc/Config/QueryContextTest.php#L59
tests/inc/Config/QueryContextTest.php:59:27: InaccessibleMethod: Cannot access private method RemoteDataBlocks\Tests\Config\_github_workspace_tests_inc_Config_QueryContextTest_php_59_1932::__construct from context RemoteDataBlocks\Tests\Config\QueryContextTest (see https://psalm.dev/003)
|
MethodSignatureMismatch:
tests/inc/Config/QueryRunnerTest.php#L32
tests/inc/Config/QueryRunnerTest.php:32:4: MethodSignatureMismatch: Method RemoteDataBlocks\Config\ArraySerializable::__construct is declared final and cannot be overridden (see https://psalm.dev/042)
|
ParamNameMismatch:
tests/inc/Config/QueryRunnerTest.php#L32
tests/inc/Config/QueryRunnerTest.php:32:56: ParamNameMismatch: Argument 1 of RemoteDataBlocks\Tests\Config\_github_workspace_tests_inc_Config_QueryRunnerTest_php_27_941::__construct has wrong name $http_data_source, expecting $config as defined by RemoteDataBlocks\Config\ArraySerializable::__construct (see https://psalm.dev/230)
|
phpcs
Process completed with exit code 2.
|
Psalm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
phpcs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
eslint, prettier, wp-scripts
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|