File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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') }}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments