Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ updates:
ignore:
- dependency-name: phpunit/phpunit
versions:
- 8.5.14
- "8.5.*"
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require php-coveralls/php-coveralls -n
composer require php-coveralls/php-coveralls -n -W
vendor/bin/php-coveralls --coverage_clover=clover.xml -v
13 changes: 8 additions & 5 deletions Slim/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@

use Psr\Log\AbstractLogger;
use Psr\Log\InvalidArgumentException;
use Stringable;

use function error_log;

class Logger extends AbstractLogger
{
/**
* @param mixed $level
* @param string $message
* @param array<mixed> $context
* @param mixed $level
* @param string|Stringable $message
* @param array<mixed> $context
*
* @return void
*
* @throws InvalidArgumentException
*/
public function log($level, $message, array $context = [])
public function log($level, $message, array $context = []): void
{
error_log($message);
error_log((string) $message);
}
}
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@
"psr/http-message": "^1.0",
"psr/http-server-handler": "^1.0",
"psr/http-server-middleware": "^1.0",
"psr/log": "^1.1"
"psr/log": "^1.1 || ^2.0 || ^3.0"
},
"require-dev": {
"ext-simplexml": "*",
"adriansuter/php-autoload-override": "^1.2",
"guzzlehttp/psr7": "^1.8",
"http-interop/http-factory-guzzle": "^1.0",
"guzzlehttp/psr7": "^2.0",
"http-interop/http-factory-guzzle": "^1.1",
"laminas/laminas-diactoros": "^2.4",
"nyholm/psr7": "^1.4",
"nyholm/psr7-server": "^1.0.2",
"nyholm/psr7-server": "^1.0",
"phpspec/prophecy": "^1.13",
"phpstan/phpstan": "^0.12.90",
"phpunit/phpunit": "^8.5.13 || ^9.3.8",
"phpstan/phpstan": "^0.12.94",
"phpunit/phpunit": "^8.5 || ^9.5",
"slim/http": "^1.2",
"slim/psr7": "^1.4",
"squizlabs/php_codesniffer": "^3.6",
"weirdan/prophecy-shim": "^1.0 || ^2.0.2"
"weirdan/prophecy-shim": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
Expand Down