diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc9b240..724e6dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,13 +11,13 @@ jobs: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga build: name: Build - runs-on: Ubuntu-20.04 + runs-on: Ubuntu-22.04 strategy: fail-fast: false matrix: @@ -50,7 +50,7 @@ jobs: steps: - name: Set up PHP - uses: shivammathur/setup-php@2 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: none diff --git a/Logging/AdaptiveHandler.php b/Logging/AdaptiveHandler.php index 396fa67..1d0ee3a 100644 --- a/Logging/AdaptiveHandler.php +++ b/Logging/AdaptiveHandler.php @@ -14,6 +14,7 @@ namespace Ekino\NewRelicBundle\Logging; use Monolog\Handler\NewRelicHandler; +use Monolog\LogRecord; use Psr\Log\LogLevel; class AdaptiveHandler extends NewRelicHandler @@ -28,7 +29,7 @@ public function __construct( parent::__construct($level, $bubble, $appName, $explodeArrays, $transactionName); } - protected function write(array $record): void + protected function write(LogRecord $record): void { if (!$this->isNewRelicEnabled()) { return; diff --git a/composer.json b/composer.json index a65dc33..8ac55e3 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "symfony/http-kernel": "^5.4|^6.4|^7.0" }, "require-dev": { - "matthiasnoback/symfony-dependency-injection-test": "^5.1", + "matthiasnoback/symfony-dependency-injection-test": "^4.3|^5.1", "symfony/framework-bundle": "^5.4|^6.4|^7.0", "symfony/phpunit-bridge": "^5.3|^6.0|^7.0", "twig/twig": "^1.32|^2.4|^3.0",