From 051f03c3edaf5bb3bde497ecf8998620532cc515 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Tue, 8 Apr 2025 10:29:39 +0200 Subject: [PATCH] Fix tests with latest dependencies --- .github/workflows/tests.yaml | 5 +++-- tests/Type/Php/data/preg_match_checked.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 07eb00c..b641027 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -18,7 +18,8 @@ jobs: - "8.2" - "8.3" - "8.4" - dependencies: ["highest"] + dependencies: + - "highest" include: - description: "(lowest)" php: "8.1" @@ -44,7 +45,7 @@ jobs: - name: "Upload test coverage" uses: codecov/codecov-action@v5 with: - files: "./coverage.xml" + files: coverage.xml fail_ci_if_error: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/tests/Type/Php/data/preg_match_checked.php b/tests/Type/Php/data/preg_match_checked.php index 31699cb..0ecea9f 100644 --- a/tests/Type/Php/data/preg_match_checked.php +++ b/tests/Type/Php/data/preg_match_checked.php @@ -8,7 +8,7 @@ // when the return value is checked, we should have matches, // unless the match-group itself is optional -$type = "array{0: string, 1: non-empty-string, 2: 'o', 3?: 'World'}"; +$type = "array{0: non-falsy-string, 1: non-empty-string, 2: 'o', 3?: 'World'}"; // @phpstan-ignore-next-line - use of unsafe is intentional if(\preg_match($pattern, $string, $matches)) {