diff --git a/code/Messages/LogFormatter.php b/code/Messages/LogFormatter.php index 286a499..8de268a 100644 --- a/code/Messages/LogFormatter.php +++ b/code/Messages/LogFormatter.php @@ -3,13 +3,14 @@ namespace LeKoala\DebugBar\Messages; use Monolog\Formatter\FormatterInterface; +use Monolog\LogRecord; /** * Formats incoming log messages for display in the debug bar */ class LogFormatter implements FormatterInterface { - public function format(array $record) + public function format(LogRecord $record) { return $record['message']; } diff --git a/composer.json b/composer.json index 8923894..a157048 100644 --- a/composer.json +++ b/composer.json @@ -16,17 +16,17 @@ } ], "require": { - "php": "^7.4 || ^8.0", - "silverstripe/framework": "^4.0", - "maximebf/debugbar": "^1.13", + "php": "^8.1", + "silverstripe/framework": "^5", + "maximebf/debugbar": "^1.18", "jdorn/sql-formatter": "1.3.x-dev", "tractorcow/silverstripe-proxy-db": "^1.0" }, "require-dev": { - "silverstripe/siteconfig": "^4.0", - "silverstripe/admin": "^1.0", + "silverstripe/siteconfig": "^5", + "silverstripe/admin": "^2", "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.5" + "squizlabs/php_codesniffer": "^3" }, "extra": { "branch-alias": {