Skip to content

Setup strategy #4

@GromNaN

Description

@GromNaN

From my understanding, this project have been created to extract utility classes that where provided by psr/log ^1.1 but removed from v2 (php-fig/log#76).

This repo should start with a v1.0.0 that provides nothing, but require psr/log ^1.1 which provides TestLogger and LoggerInterfaceTest.

Next, v1.1.0 requires psr/log ^2.0|^3.0 and php >=8.0.0 and provides the classes that were removed from this versions. Older PHP version don't have to be supported since psr/log >= 2.0.0 require PHP 8.0 (see composer.json).

For a project that uses the test classes, needs support for PHP 7 and allows all versions of psr/log, it would have the following requirements:

"require": {
    "psr/log": "^1.1|^2.0|3.0"
},
"require-dev": {
    "psr/log-utils": "^1.0"
}

Seen #2 (comment), but they don't provide a migration path and looks outdated but my proposition is to not change the class names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions