Skip to content

Commit

Permalink
feat: upgrade all dependencies for php8 and monolog version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanheuverzwijn committed Jul 4, 2022
1 parent e3e8945 commit c1add43
Show file tree
Hide file tree
Showing 6 changed files with 821 additions and 247 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: all test composer clean clean-docker-image clean-composer-vendor

composer = composer:1.9
phpcli = php:7
composer = composer:2
phpcli = php:8

all: composer test

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $logger->debug('mylog');
Execute it with the following docker command.

```
docker run -it --rm -v "${PWD}":/usr/src/myapp -w /usr/src/myapp php:7-cli php test.php
docker run -it --rm -v "${PWD}":/usr/src/myapp -w /usr/src/myapp php:8-cli php test.php
```

You should see the log 'mylog' with debug level in the logdna account for which the ingestion key is bound to.
Expand All @@ -55,7 +55,9 @@ This project is licensed under LGPL3.0. See `LICENSE` file for details.

## Versions

Version 1.x is php5 compatible version while 2.x is php7 and php8 since 2.2.
1.x is php5 with monolog 1.
2.x is php7 and php8 with monolog 2.
3.x is php8 with monolog 3.

## Test

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}
],
"require": {
"php": "^7.2",
"monolog/monolog": ">=2.0"
"php": "^8.0",
"monolog/monolog": ">=3.0"
},
"require-dev": {
"phpunit/phpunit": "^8.3"
"phpunit/phpunit": ">=8.3"
},
"autoload": {
"psr-4": {"Zwijn\\Monolog\\": "src/Monolog"}
Expand Down
Loading

0 comments on commit c1add43

Please sign in to comment.