Skip to content

Add spam secure filter #1552

Add spam secure filter

Add spam secure filter #1552

Triggered via pull request April 30, 2024 11:29
Status Failure
Total duration 1h 50m 52s
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

3 errors and 23 warnings
UndefinedMethod: src/Bridge/Symfony/DependencyInjection/Configuration.php#L25
src/Bridge/Symfony/DependencyInjection/Configuration.php:25:20: UndefinedMethod: Method Symfony\Component\Config\Definition\Builder\NodeDefinition::append does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Bridge/Symfony/DependencyInjection/Configuration.php#L35
src/Bridge/Symfony/DependencyInjection/Configuration.php:35:15: UndefinedMethod: Method Symfony\Component\Config\Definition\Builder\NodeDefinition::addDefaultsIfNotSet does not exist (see https://psalm.dev/022)
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 / 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 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.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.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 / 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.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/.