Skip to content

Commit 07b5a21

Browse files
authored
Update dependencies (#163)
1 parent d3138a5 commit 07b5a21

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/continuous_integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1616

1717
- name: Setup PHP
18-
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4
18+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f
1919
with:
2020
php-version: '8.4'
2121
tools: composer
@@ -24,7 +24,7 @@ jobs:
2424
id: composer-cache
2525
run: |
2626
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
27-
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809
27+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
2828
with:
2929
path: ${{ steps.composer-cache.outputs.dir }}
3030
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
},
1010
"require": {
1111
"php": "^8.4",
12-
"phpunit/phpunit": "^11.5.26"
12+
"phpunit/phpunit": "^11.5.42"
1313
},
1414
"require-dev": {
15-
"phpstan/phpstan": "^2.1.17",
16-
"slevomat/coding-standard": "^8.19.1",
17-
"squizlabs/php_codesniffer": "^3.13.2"
15+
"phpstan/phpstan": "^2.1.29",
16+
"slevomat/coding-standard": "^8.24.0",
17+
"squizlabs/php_codesniffer": "^4.0.0"
1818
},
1919
"scripts": {
2020
"phpstan": "phpstan analyse --configuration phpstan.neon --memory-limit=2G",

src/Tracer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ private function addTestOutput(PrintedUnexpectedOutput $event): void
170170
{
171171
// This must rely on the sequence of events!
172172

173+
if (count($this->result['tests']) === 0) {
174+
return;
175+
}
176+
173177
/** @var Result $lastTest */
174178
$lastTest = $this->result['tests'][array_key_last($this->result['tests'])];
175179
$lastTest->setUserOutput($event->output());

0 commit comments

Comments
 (0)