-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Narrow array type for services
in ServiceManager configuration
#213
Narrow array type for services
in ServiceManager configuration
#213
Conversation
services
in ServiceManager configuration
src/ServiceManager.php
Outdated
@@ -89,7 +89,7 @@ | |||
* initializers?: InitializersConfiguration, | |||
* invokables?: array<string,string>, | |||
* lazy_services?: LazyServicesConfiguration, | |||
* services?: array<string,object|array>, | |||
* services?: array<string,object|array<array-key,mixed>>, |
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 requested in #212, please use array<mixed>
instead.
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.
@laminas/technical-steering-committee should we enforce this kind of array
notation via our codestandard and if so, are there existing rules for that? That would prevent us from having these kind of "issues" with incompatibilities between psalm/phpstan in the future.
…iceManager fixes laminas#212 Signed-off-by: Thomas Rieschl <[email protected]>
780fab7
to
10ceb4a
Compare
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, will see when I find some time to prepare a release
nvm, is just a patch. going to release now.
thanks! |
Description
This PR adds a more specific array shape for the
services
key inServiceManagerConfiguration
.fixes #212