diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 805aeac..1bd98cf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,7 +68,7 @@ jobs: - name: Run PHPStan run: | export PHP_VERSION="${{ matrix.PHP_VERSION }}" - docker run -v "$PWD:/app" -v "$PWD/vendor${PHP_VERSION}:/app/vendor" --rm ghcr.io/phpstan/phpstan analyse /app/src --configuration phpstan.neon --error-format=github + docker run -v "$PWD:/app" -v "$PWD/vendor${PHP_VERSION}:/app/vendor" --rm ghcr.io/phpstan/phpstan analyse /app/src --configuration phpstan$([ "$PHP_VERSION" = "71" ] && echo ".71" || echo "").neon --error-format=github tests: name: Tests diff --git a/Dockerfile b/Dockerfile index d3a7904..2b75f95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,7 +71,7 @@ FROM php:8.5 AS php85 RUN <getName()); self::assertSame([$truncate, 'withTextLength'], $filters[0]->getCallable()); @@ -64,6 +65,7 @@ public function testGetFunctions(): void # white/positive # assert self::assertContainsOnlyInstancesOf(TwigFunction::class, $functions); + /** @var array{0: TwigFunction} $functions */ self::assertCount(1, $functions); self::assertSame('truncate_html_with_text_length', $functions[0]->getName()); self::assertSame([$truncate, 'withTextLength'], $functions[0]->getCallable());