From 3d7247009f1177a8bcec948fc5290f874fd95729 Mon Sep 17 00:00:00 2001 From: Tiago Siqueira Date: Fri, 3 Jun 2022 11:24:19 +0200 Subject: [PATCH] Revert change made from phpStan and change to v3 --- .github/workflows/codingStandards.yml | 2 +- .../src/Plugin/views/filter/FollowTaxonomyViewsFilter.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codingStandards.yml b/.github/workflows/codingStandards.yml index 61a8af12722..238c52b2067 100644 --- a/.github/workflows/codingStandards.yml +++ b/.github/workflows/codingStandards.yml @@ -66,7 +66,7 @@ jobs: run: sudo update-alternatives --set php /usr/bin/php8.0 - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/modules/social_features/social_follow_taxonomy/src/Plugin/views/filter/FollowTaxonomyViewsFilter.php b/modules/social_features/social_follow_taxonomy/src/Plugin/views/filter/FollowTaxonomyViewsFilter.php index d7f6237cec4..7c0f653dd63 100644 --- a/modules/social_features/social_follow_taxonomy/src/Plugin/views/filter/FollowTaxonomyViewsFilter.php +++ b/modules/social_features/social_follow_taxonomy/src/Plugin/views/filter/FollowTaxonomyViewsFilter.php @@ -148,7 +148,9 @@ protected function valueForm(&$form, FormStateInterface $form_state): void { continue; } $choice = new \stdClass(); - $choice->option = [$term->id() => str_repeat('-', (int) $term->depth) . $this->entityRepository->getTranslationFromContext($term)->label()]; + + // @phpstan-ignore-next-line + $choice->option = [$term->id() => str_repeat('-', $term->depth) . $this->entityRepository->getTranslationFromContext($term)->label()]; $options[] = $choice; } }