Skip to content

Commit

Permalink
Support update
Browse files Browse the repository at this point in the history
- fully support PHP 8.4
- drop support for PHP 8.0
- drop support for psr/log v1
- add support psr/log v2 and v3 (required dependency)
  • Loading branch information
dakujem committed Dec 27, 2024
1 parent 3c36e6b commit 19da306
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
strategy:
matrix:
include:
- php: '8.0'
- php: '8.1'
composer-flags: '--prefer-lowest'
- php: '8.0'
- php: '8.1'
- php: '8.2'
- php: '8.3'
- php: '8.3'
composer-flags: '--prefer-lowest'
- php: '8.4'
# Steps represent a sequence of tasks that will be executed as part of the job
name: "PHP${{ matrix.php }} ${{ matrix.composer-flags }}"
steps:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"dakujem/generic-middleware": "^1",
"psr/http-factory": "^1.0",
"psr/http-server-middleware": "^1.0",
"psr/log": "^1.0"
"psr/log": "^2 || ^3"
},
"require-dev": {
"ext-json": "*",
Expand Down
3 changes: 2 additions & 1 deletion tests/support/ProxyLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Dakujem\Middleware\Test\Support;

use Psr\Log\AbstractLogger;
use Stringable;

/**
* ProxyLogger
Expand All @@ -20,7 +21,7 @@ public function __construct(callable $fn)
$this->fn = $fn;
}

public function log($level, $message, array $context = [])
public function log($level, string|Stringable $message, array $context = []): void
{
($this->fn)($level, $message, $context);
}
Expand Down

0 comments on commit 19da306

Please sign in to comment.