@@ -4,6 +4,9 @@ on:
- push
- pull_request
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
jobs:
tests:
name: "CI (PHP ${{ matrix.php-version }}, ${{ matrix.dependencies }} deps)"
push:
pull_request:
name: "Lint"
@@ -7,6 +7,9 @@ on:
env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
name: "PHPStan"
@@ -63,4 +63,18 @@ class WhatFailureGroupHandler extends GroupHandler
}
+ /**
+ * {@inheritDoc}
+ */
+ public function close(): void
+ {
+ foreach ($this->handlers as $handler) {
+ try {
+ $handler->close();
+ } catch (\Throwable $e) {
+ // What failure?
+ }