Skip to content

Commit

Permalink
Merge pull request #15 from petrknap/psr-log-1
Browse files Browse the repository at this point in the history
Added `psr\log` 1 and 3 into requirements
  • Loading branch information
petrknap authored May 22, 2024
2 parents 586fa25 + f8cad58 commit aa894a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"name": "petrknap/optional",
"require": {
"php": ">=8.1",
"psr/log": "^2.0"
"psr/log": "^3.0|^2.0|^1.0"
},
"require-dev": {
"nunomaduro/phpinsights": "^2.11",
Expand Down
3 changes: 3 additions & 0 deletions src/LoggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Psr\Log\LoggerInterface;

/**
* @internal
*/
trait LoggerTrait
{
private static ?LoggerInterface $logger = null;
Expand Down

0 comments on commit aa894a1

Please sign in to comment.