From 676f191247817616781f1cb9a9e1f2100dd490f5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:07:36 +0000 Subject: [PATCH 1/3] Update all dependencies --- .github/workflows/draft-release-notes.yml | 2 +- .github/workflows/test-php.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft-release-notes.yml b/.github/workflows/draft-release-notes.yml index 82a8b3a..48701e3 100644 --- a/.github/workflows/draft-release-notes.yml +++ b/.github/workflows/draft-release-notes.yml @@ -20,6 +20,6 @@ jobs: steps: - name: Draft release notes - uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 + uses: release-drafter/release-drafter@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 481b6e8..89e5b3e 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Cache Composer dependencies - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: /tmp/composer-cache key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} From 655b75df1a51f97cbd35ab9c104d322d871de321 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 14 Apr 2026 17:53:17 +1000 Subject: [PATCH 2/3] Fixed truthy check to use 'instanceof' for exception type check. --- .../BehatFormatProgressFail/Printer/PrinterProgressFail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php index c60a06e..5be2084 100644 --- a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php +++ b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php @@ -110,7 +110,7 @@ protected function printFailure(StepResult $result, StepNode $step): string { } $exception = $result->getException(); - if ($exception) { + if ($exception instanceof \Exception) { $output .= sprintf(sprintf(' {+%s}%%s{-%s}', $style, $style), $exception->getMessage()); $output .= PHP_EOL; } From 6987f183db89990abac2732560c912b0923603d4 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 14 Apr 2026 18:15:58 +1000 Subject: [PATCH 3/3] Fixed boolean check to use 'instanceof Definition' in 'PrinterProgressFail'. --- .../BehatFormatProgressFail/Printer/PrinterProgressFail.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php index 5be2084..ea0c59f 100644 --- a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php +++ b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php @@ -4,6 +4,7 @@ namespace DrevOps\BehatFormatProgressFail\Printer; +use Behat\Behat\Definition\Definition; use Behat\Gherkin\Node\ArgumentInterface; use Behat\Behat\Definition\Call\DefinitionCall; use Behat\Behat\Output\Node\Printer\Helper\ResultToStringConverter; @@ -134,7 +135,7 @@ protected function printStdOut(OutputPrinter $printer, StepResult $result): void } $step_definition = $result->getStepDefinition(); - if (!$step_definition) { + if (!$step_definition instanceof Definition) { return; }