Skip to content

Commit 32abe68

Browse files
authored
Merge pull request #30 from homiedopie/hotfix/PHP-88-v2
(PHP-88)(V2) - Update dependency versions to address security issues and work with other libraries
2 parents 950ff08 + b724d18 commit 32abe68

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Standalone Stackify PHP [PSR-3](https://github.com/php-fig/fig-standards/blob/ma
1717

1818
Install the latest version with `composer require stackify/logger`
1919

20+
### Requirements
21+
* Stackify PHP Logger ^2.0 works with PHP 7.1 or above.
22+
* Stackify PHP Logger ^1.0 works with PHP 5.3 or above.
23+
2024
### Installation with Linux Agent
2125

2226
This is the suggested installation option, offering the best

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "library",
77
"license": "Apache-2.0",
88
"require": {
9-
"php": ">=5.3.0",
10-
"psr/log": "^1.0 | ^2.0",
9+
"php": ">= 7.1.0",
10+
"psr/log": "^1.0 | ^2.0 | ^3.0",
1111
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
1212
"php-http/socket-client": "^1.4 | ^2.0",
1313
"php-http/message": "^1.7",

src/Stackify/Log/Standalone/Logger.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
// Copyright (c) 2024 BMC Software, Inc.
3+
// Copyright (c) 2021-2024 Netreo
4+
// Copyright (c) 2019 Stackify
25

36
namespace Stackify\Log\Standalone;
47

@@ -35,7 +38,7 @@ public function __destruct()
3538
$this->transport->finish();
3639
}
3740

38-
public function log($level, $message, array $context = array())
41+
public function log($level, $message, array $context = array()): void
3942
{
4043
$logEvent = array(
4144
'message' => (string) $message,

0 commit comments

Comments
 (0)