Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/draft-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -110,7 +111,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;
}
Expand All @@ -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;
}

Expand Down