Skip to content

Commit

Permalink
Fix Psr\Log\AbstractLogger error
Browse files Browse the repository at this point in the history
Nextcloud broke things again in an update without mentioning it in the changelog. A ton of apps are impacted (not just epubviewer).

This commit uses a trick to prevent epubviewer's dependencies from installing `Psr\Log` and instead use the one diretly shipped in the dependencies of Nextcloud 31.

Fix #29 (comment)

Related:
- nextcloud/mail#10644
- ChristophWurst/nextcloud_sentry#701
- nextcloud/mail#10706
- nextcloud/mail#10658
- ihttps://github.com/nextcloud/mail/pull/10708
- And many more…
  • Loading branch information
devnoname120 committed Feb 27, 2025
1 parent 9c61a2e commit 5d9f81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 51 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"php": "8.1"
}
},
"provide": {
"psr/log": "^1.0.4|^2|^3"
},
"require-dev": {
"phpunit/phpunit": "^9.6.22",
"nextcloud/ocp": "^30.0.6",
Expand Down
52 changes: 1 addition & 51 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d9f81b

Please sign in to comment.