Lock file maintenance #1666
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
4s
PHPUnit Coverage
32s
Check for missing dependencies
16s
Mutation Tests
3m 13s
Matrix: ci / QA Checks
Annotations
10 errors and 7 warnings
MissingOverrideAttribute:
src/Assert.php#L21
src/Assert.php:21:5: MissingOverrideAttribute: Method Prismic\DocumentType\Assert::reportinvalidargument should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L54
src/BaseClient.php:54:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::getdefinition should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L69
src/BaseClient.php:69:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::fetchalldefinitions should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L86
src/BaseClient.php:86:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::deletedefinition should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L146
src/BaseClient.php:146:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::savedefinition should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L193
src/BaseClient.php:193:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::fetchallsharedslices should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L252
src/BaseClient.php:252:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::savesharedslice should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L269
src/BaseClient.php:269:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::getsharedslice should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/BaseClient.php#L283
src/BaseClient.php:283:5: MissingOverrideAttribute: Method Prismic\DocumentType\BaseClient::deletesharedslice should have the "Override" attribute (see https://psalm.dev/358)
|
MissingOverrideAttribute:
src/Definition.php#L66
src/Definition.php:66:5: MissingOverrideAttribute: Method Prismic\DocumentType\Definition::jsonserialize should have the "Override" attribute (see https://psalm.dev/358)
|
PHPUnit Coverage
Unexpected input(s) 'file', valid inputs are ['base_sha', 'binary', 'codecov_yml_path', 'commit_parent', 'directory', 'disable_file_fixes', 'disable_search', 'disable_safe_directory', 'disable_telem', 'dry_run', 'env_vars', 'exclude', 'fail_ci_if_error', 'files', 'flags', 'force', 'git_service', 'gcov_args', 'gcov_executable', 'gcov_ignore', 'gcov_include', 'handle_no_reports_found', 'job_code', 'name', 'network_filter', 'network_prefix', 'os', 'override_branch', 'override_build', 'override_build_url', 'override_commit', 'override_pr', 'plugins', 'recurse_submodules', 'report_code', 'report_type', 'root_dir', 'run_command', 'skip_validation', 'slug', 'swift_project', 'token', 'url', 'use_legacy_upload_endpoint', 'use_oidc', 'use_pypi', 'verbose', 'version', 'working-directory']
|
Mutation Tests:
src/BaseClient.php#L78
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$body = Json::decodeToArray((string) $response->getBody());
$list = [];
foreach ($body as $item) {
- Assert::isArray($item);
+
$definition = Definition::fromArray($item);
$list[$definition->id()] = $definition;
}
|
Mutation Tests:
src/BaseClient.php#L202
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$body = Json::decodeToArray((string) $response->getBody());
$list = [];
foreach ($body as $item) {
- Assert::isArray($item);
+
$definition = SharedSlice::fromArray($item);
$list[$definition->id] = $definition;
}
|
Mutation Tests:
src/BaseClient.php#L257
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
try {
$current = $this->getSharedSlice($slice->id);
} catch (DefinitionNotFound) {
- $this->createSharedSlice($slice);
+
return;
}
if ($slice->equals($current)) {
|
Mutation Tests:
src/Json.php#L28
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public static function decodeToArray(string $json): array
{
try {
- $decoded = json_decode($json, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($json, true, 511, JSON_THROW_ON_ERROR);
Assert::isArray($decoded);
return $decoded;
} catch (JsonException $e) {
|
Mutation Tests:
src/SharedSlice.php#L35
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
/** @param array<array-key, mixed> $payload */
public static function fromArray(array $payload): self
{
- Assert::keyExists($payload, 'id');
+
Assert::stringNotEmpty($payload['id']);
return new self($payload['id'], json_encode($payload, JSON_THROW_ON_ERROR));
}
|
Mutation Tests:
src/SharedSlice.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public static function fromArray(array $payload): self
{
Assert::keyExists($payload, 'id');
- Assert::stringNotEmpty($payload['id']);
+
return new self($payload['id'], json_encode($payload, JSON_THROW_ON_ERROR));
}
public function equals(SharedSlice $other): bool
|