flow-development-collection
flow-development-collection copied to clipboard
TASK: Update psr/container requirement from ^1.0 to ^2.0
Updates the requirements on psr/container to permit the latest version.
Release notes
Sourced from psr/container's releases.
2.0.0
Changed
- This release adds the
bool
return typehint toPsr\Container\ContainerInterface::has()
, in accordance with the PSR-11 type additions errata.
Commits
68f5200
fix: alias master branch to 2.0.x122c267
Merge pull request #28 from weierophinney/feature/add-return-type-hints9fc7aab
Merge pull request #20 from moufmouf/type_hinting381524e
Merge pull request #27 from weierophinney/feature/add-param-hintsf9a9895
fix: update dev-master to 2.0.x-dev, not 3.0.x-devb1fbdff
Merge pull request #29 from J0WI/patch-1ccffa9f
Update url to HTTPS2a09c4c
fix: update branch alias to reflect 1.1 targetde1921e
feat: add return type hints6c2bc7f
feat: Adds parameter typehints to ContainerInterface- Additional commits viewable in compare view
A newer version of psr/container exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
Before bringing this to next majer, we need a corresponding issue, that we can link to the Flow 8 project board :)
@mficzel we overlooked this one when updating the dependencies. Not sure we want to still get this into 8.0
Should be fine. I am for doing this
Now the only question is how to correctly avoid having $constructorArguments
in the interface, but in our implementation, while keeping psalm
happy.
If we cannot do this properly we could remove the ContainerInterface from the object manager interface and create a psr 11 container instead that only implements psr11 and internally uses objectManager an configurationManager.
Oh, come on Psalm… That is unrelated!
And now we (again) are at the point where a Behat update is needed. I'll look into that next week…