On 2017-05-08 03:01 AM, Larry Garfield wrote:
The simple answer is "well submit a PR to micahaelc/tortoise to update
his version requirement, since we know it works." However, that
introduces a new language version dependency on Tortoise which should be
treated as a major version bump. It also means that Tortoise is now
incompatible with philsturgeon/turtle, which is also using the 1.0
logger. Hence Phil needs to update his Turtle at the same time. (That
sentence is begging to be OHed...)
In short, it means that all 2494 PSR-3 using packages on packagist.org
(as of this writing) need to all release a new major version *at the
same time*. That's totally not going to happen. Or, someone needs to
develop a bridge library called LogPlug that abstracts away the
differences, which... rather defeats the whole purpose of having a PSR
interface.
Note that the packages could be updated to "psr/log": "^1.0 || ^2.0" if
2.0 is compatible with implementations supporting 1.0. Then it's up to
the users to pick psr/log 1.0 or 2.0 based on the PHP version they have,
or preference or whatever. Both can coexist if the changes are minor
enough (adding scalar type hints for things that were already enforced
counts as minor IMO). Doing a change like that doesn't require a major
version bump.
And no, not everything has to change overnight. It's much like when
Composer got started, nothing used it at first. If you wanted to use it
with a lib you had to send a PR with a composer.json to that lib..
Things moved pretty fast that way, but not overnight, there's no need to.
Best,
Jordi
--
Jordi Boggiano
@seldaek - http://seld.be
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/47dbc8cd-c307-bce1-cae6-0a0c287342c5%40seld.be.
For more options, visit https://groups.google.com/d/optout.