Skip to content

Commit a683e47

Browse files
Update all dependencies (#67)
* Update all dependencies * Fixed truthy check to use 'instanceof' for exception type check. * Fixed boolean check to use 'instanceof Definition' in 'PrinterProgressFail'. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Skrypnyk <alex@drevops.com>
1 parent 251c662 commit a683e47

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/draft-release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020

2121
steps:
2222
- name: Draft release notes
23-
uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7
23+
uses: release-drafter/release-drafter@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2323

2424
- name: Cache Composer dependencies
25-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
25+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
2626
with:
2727
path: /tmp/composer-cache
2828
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace DrevOps\BehatFormatProgressFail\Printer;
66

7+
use Behat\Behat\Definition\Definition;
78
use Behat\Gherkin\Node\ArgumentInterface;
89
use Behat\Behat\Definition\Call\DefinitionCall;
910
use Behat\Behat\Output\Node\Printer\Helper\ResultToStringConverter;
@@ -110,7 +111,7 @@ protected function printFailure(StepResult $result, StepNode $step): string {
110111
}
111112

112113
$exception = $result->getException();
113-
if ($exception) {
114+
if ($exception instanceof \Exception) {
114115
$output .= sprintf(sprintf(' {+%s}%%s{-%s}', $style, $style), $exception->getMessage());
115116
$output .= PHP_EOL;
116117
}
@@ -134,7 +135,7 @@ protected function printStdOut(OutputPrinter $printer, StepResult $result): void
134135
}
135136

136137
$step_definition = $result->getStepDefinition();
137-
if (!$step_definition) {
138+
if (!$step_definition instanceof Definition) {
138139
return;
139140
}
140141

0 commit comments

Comments
 (0)