From 0832c83db8c1b55ce24c3539dc212266718c4b17 Mon Sep 17 00:00:00 2001 From: Boruta Date: Sun, 24 Apr 2022 18:56:33 +0200 Subject: [PATCH] Allow newest versions of PHP and `psr/log` --- composer.json | 12 ++++++------ src/Logger/FileLogger.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 0274e56..f33f696 100644 --- a/composer.json +++ b/composer.json @@ -15,13 +15,13 @@ } }, "require": { - "php": ">=7.1", + "php": "^7.1|^8.0", "ext-pdo": "*", - "symfony/yaml": "^4.2.1|^5.2.1", - "pimple/pimple": "^3.2.3", - "cartalyst/collections": "^1.1.0", - "psr/log": "^1.1", - "predis/predis": "^1.1.1", + "symfony/yaml": "^4.2|^5.2", + "pimple/pimple": "^3.2", + "cartalyst/collections": "^1.1", + "psr/log": "^1.1|^2.0", + "predis/predis": "^1.1", "phpmailer/phpmailer": "^6.0" }, "require-dev": { diff --git a/src/Logger/FileLogger.php b/src/Logger/FileLogger.php index 8c1a44e..f543f09 100644 --- a/src/Logger/FileLogger.php +++ b/src/Logger/FileLogger.php @@ -32,7 +32,7 @@ public function __construct(FileLoggerConfig $config) /** * @param string $logType * @param string $message - * @param $context + * @param array $context */ protected function logToFile(string $logType, string $message, array $context): void {