Skip to content
Snippets Groups Projects
Commit 737e9dc7 authored by Larry Garfield's avatar Larry Garfield Committed by Benni Mack
Browse files

[TASK] Update dependency to PSR-3 v2/3

PSR-3 v2 and v3 add types, so we can switch to those now.

Because we don't fully implement PSR-3 directly, this is
a trivial change. Most of the updates are in tests and
nominally optional.

Note that composer/composer is still only v2 compatible,
not v3, so this will still only pull in v2. However, it
sets us up to automatically and safely get v3 as soon as
composer/composer is updated.

AbstractLogger is also now vestigial (it does nothing but
use LoggerTrait), so I've removed usage of it in favor of
the trait. That eliminates one autoload lookup.

Used commands:

> composer req psr/log:"^2.0 || ^3.0"
> composer req psr/log:"^2.0 || ^3.0" \
  -d typo3/sysext/core --no-update
> composer req psr/log:"^2.0 || ^3.0" \
  -d typo3/sysext/redirects --no-update

Resolves: #97242
Releases: main
Change-Id: I9089a5af216eb72c67614ab34ae126d08890a0eb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74063


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 675cf0bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment