Fix symfony deprecation #1719
continuous-integration.yml
on: push
run
/
Generate test matrix
3s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / tests
Annotations
7 errors and 18 warnings
run / Test: PHP 8.3, Symfony 6.4, highest)
GitHub Actions has encountered an internal error when running your job.
|
run / Test: PHP 8.3, Symfony 7.0, lowest)
The job was canceled because "_8_3_6_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.4, lowest)
The job was canceled because "_8_3_6_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.4, lowest)
The operation was canceled.
|
run / Test: PHP 8.3, Symfony 7.0, highest)
The job was canceled because "_8_3_6_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 7.0, highest)
The operation was canceled.
|
run / Test: PHP 8.2, Symfony 7.0, lowest)
The job was canceled because "_8_3_6_4_highest" failed.
|
run / Coding Standards (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Mutation Tests (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Mutation Tests (8.3):
src/Extension/DownloadTypeExtension.php#L33
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
public function configureOptions(OptionsResolver $resolver): void
{
- $resolver->setDefaults(['download_path' => null, 'download_text' => 'link_download'])->setAllowedTypes('download_path', ['null', 'string'])->setAllowedTypes('download_text', ['null', 'string']);
+ $resolver->setDefaults(['download_path' => null, 'download_text' => 'link_download'])->setAllowedTypes('download_path', ['null', 'string'])->setAllowedTypes('download_text', ['string']);
}
public function buildForm(FormBuilderInterface $builder, array $options): void
{
|
run / Mutation Tests (8.3):
src/Extension/DownloadTypeExtension.php#L46
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
}
public function buildView(FormView $view, FormInterface $form, array $options): void
{
- if (null !== $options['download_path'] && null !== $form->getParent()) {
+ if (null !== $options['download_path'] || null !== $form->getParent()) {
$parentData = $form->getParent()->getData();
if (null !== $parentData) {
$propertyAccessor = PropertyAccess::createPropertyAccessor();
|
run / Mutation Tests (8.3):
src/Extension/ImageTypeExtension.php#L27
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
public function configureOptions(OptionsResolver $resolver): void
{
- $resolver->setDefaults(['image_path' => null])->setAllowedTypes('image_path', ['null', 'string']);
+
}
public function buildForm(FormBuilderInterface $builder, array $options): void
{
|
run / Mutation Tests (8.3):
src/Extension/ImageTypeExtension.php#L44
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
}
public function buildView(FormView $view, FormInterface $form, array $options): void
{
- if (null !== $options['image_path'] && null !== $form->getParent()) {
+ if (null !== $options['image_path'] || null !== $form->getParent()) {
$parentData = $form->getParent()->getData();
if (null !== $parentData) {
$propertyAccessor = PropertyAccess::createPropertyAccessor();
|
run / Mutation Tests (8.3):
src/Handler/AbstractFormHandler.php#L61
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
/**
* Executes before form validating and processing is started.
*/
- protected function preProcess(FormInterface $form, Request $request): ?Response
+ private function preProcess(FormInterface $form, Request $request): ?Response
{
return null;
}
|
run / Mutation Tests (8.3):
src/Handler/AbstractFormHandler.php#L69
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
/**
* Executes after preprocessing and before form processing is started.
*/
- protected function validate(FormInterface $form, Request $request): ?Response
+ private function validate(FormInterface $form, Request $request): ?Response
{
return null;
}
|
run / Mutation Tests (8.3):
src/Handler/AbstractFormHandler.php#L82
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
/**
* Executes after form processing is finished and filters response.
*/
- protected function postProcess(FormInterface $form, Request $request, Response $response): ?Response
+ private function postProcess(FormInterface $form, Request $request, Response $response): ?Response
{
return $response;
}
}
|
run / Mutation Tests (8.3):
src/Model/BatchTime.php#L39
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
public function setDay(?int $day): void
{
- $this->day = $day ?: 0;
+ $this->day = $day ?: -1;
}
public function getTime(): ?DateTimeInterface
{
|
run / Mutation Tests (8.3):
src/Model/BatchTime.php#L39
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
public function setDay(?int $day): void
{
- $this->day = $day ?: 0;
+ $this->day = $day ?: 1;
}
public function getTime(): ?DateTimeInterface
{
|
run / Mutation Tests (8.3):
src/Model/BatchTime.php#L57
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
{
$seconds = $this->getDay() * 86400;
if (null !== $this->getTime()) {
- $time = clone $this->getTime();
+ $time = $this->getTime();
$seconds += (int) $time->format('U');
}
return $seconds;
}
}
|
run / Static Code Analysis (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Code Coverage (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Lint composer.json (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Test: PHP 8.2, Symfony 6.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Test: PHP 8.2, Symfony 6.4, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
run / Test: PHP 8.2, Symfony 7.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|