Skip to content

Add spam secure filter #1543

Add spam secure filter

Add spam secure filter #1543

Triggered via pull request April 30, 2024 11:11
Status Failure
Total duration 2h 8m 42s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
3s
run / Generate test matrix
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 23 warnings
run / Static Code Analysis (8.3): src/Bridge/Symfony/DependencyInjection/NucleosTwigExtension.php#L33
Method Nucleos\Twig\Bridge\Symfony\DependencyInjection\NucleosTwigExtension::configureSecure() has parameter $config with no value type specified in iterable type array.
run / Static Code Analysis (8.3)
Process completed with exit code 2.
run / Lint composer.json (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Coding Standards (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Static Code Analysis (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Mutation Tests (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Mutation Tests (8.3): src/Extension/StringExtension.php#L25
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { public function getFilters(): array { - return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => ['html']])]; + return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], [])]; } }
run / Mutation Tests (8.3): src/Extension/StringExtension.php#L26
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { public function getFilters(): array { - return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => ['html']])]; + return [new TwigFilter('format_bytes', [StringRuntime::class, 'formatBytes']), new TwigFilter('obfuscate', [StringRuntime::class, 'obfuscate']), new TwigFilter('spamsecure', [StringRuntime::class, 'spamsecure'], ['is_safe' => []])]; } }
run / Mutation Tests (8.3): src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { public function getFilters(): array { - return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => ['html']])]; + return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => []])]; } }
run / Mutation Tests (8.3): src/Extension/UrlAutoConverterExtension.php#L23
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ { public function getFilters(): array { - return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], ['is_safe' => ['html']])]; + return [new TwigFilter('converturls', [UrlAutoConverterRuntime::class, 'convertLinks'], [])]; } }
run / Mutation Tests (8.3): src/Runtime/RouterRuntime.php#L34
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ */ public function splitTag(string $text, string $tag): array { - if ('' === trim($tag)) { + if ('' === $tag) { return [$text]; } $split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
run / Mutation Tests (8.3): src/Runtime/RouterRuntime.php#L40
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ return [$text]; } $split = preg_split('/(?=<' . $tag . '([^>])*>)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); - if (false !== $split) { + if (true !== $split) { return $split; } return [$text]; } }
run / Mutation Tests (8.3): src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $this->mailAtText = $mailAtText; $this->mailDotText = $mailDotText; } - public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string + public function formatBytes(float $bytes, bool $si = false, int $fractionDigits = 0, ?string $locale = null): string { if (null === $locale) { $locale = Locale::getDefault();
run / Mutation Tests (8.3): src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $this->mailAtText = $mailAtText; $this->mailDotText = $mailDotText; } - public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string + public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = -1, ?string $locale = null): string { if (null === $locale) { $locale = Locale::getDefault();
run / Mutation Tests (8.3): src/Runtime/StringRuntime.php#L42
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $this->mailAtText = $mailAtText; $this->mailDotText = $mailDotText; } - public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 0, ?string $locale = null): string + public function formatBytes(float $bytes, bool $si = true, int $fractionDigits = 1, ?string $locale = null): string { if (null === $locale) { $locale = Locale::getDefault();
run / Mutation Tests (8.3): src/Runtime/StringRuntime.php#L48
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if (null === $locale) { $locale = Locale::getDefault(); } - $unit = $si ? 1000 : 1024; + $unit = $si ? 999 : 1024; if ($bytes < $unit) { $prefix = ''; $number = $bytes;
run / Test: PHP 8.3, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.3, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Test: PHP 8.2, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run / Code Coverage (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.