-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace container-interop/container-interop
with psr/container
#96
Conversation
The minimum version of laminas-servicemanager is 3.3 which in turn requires interop ^1.2 therefore this change should have no effect on consumers, but guarantees that we will have a Psr compatible container. Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
… version of psalm Signed-off-by: George Steel <george@net-glue.co.uk>
…the deprecated FactoryInterface Signed-off-by: George Steel <george@net-glue.co.uk>
…be simplified Signed-off-by: George Steel <george@net-glue.co.uk>
Also the creation context will very likely be decorated with a Psr Decorator which will cause the test to fail if so. The instance we're looking for is still there. Signed-off-by: George Steel <george@net-glue.co.uk>
…ger must accept a Psr Container Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…h ServiceManager Signed-off-by: George Steel <george@net-glue.co.uk>
…the baseline Signed-off-by: George Steel <george@net-glue.co.uk>
…ate baseline Signed-off-by: George Steel <george@net-glue.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 as-is
Further type refinements can be done later, but:
- already reduces baseline
- already upgrades to
psr/container
I'd say the added value is here, and further discussions are mostly bike-shedding, and should be deferred to new patches.
container-interop/container-interop
with psr/container
thanks @gsteel! |
Description
With reference to this comment from @boesing, this pull removes all mention of Interop\Container
It doesn't appear that it is currently possible to have interop <1.2 installed due to SM >3.3 so the conflict in
composer.json
is largely irrelevant.Because the lock file is updated, and newer version of psalm is installed, a number of non-trivial, new psalm errors emerged - I've added these initial errors to the baseline for now (A lot of them are due to the deprecated and to be removed flash messenger).
WRT to BC, although types have changed from
Interop
toPsr
, it wouldn't have been possible for any type to not implement Psr prior to this patch would it?