Skip to content
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 return type of single instance plugin managers #194

Conversation

boesing
Copy link
Member

@boesing boesing commented May 14, 2023

Q A
QA yes

Description

Due to the fact that an AbstractSingleInstancePluginManager can only return objects as per definition, we can safely narrow down the return type from implicit object (via psalm-types) to explicit native return type object.

@boesing boesing added this to the 4.0.0 milestone May 14, 2023
…#get` to `object`

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing force-pushed the qa/narrow-return-type-of-single-instance-plugin-managers branch from f3124e5 to 09590df Compare May 14, 2023 11:51
@boesing boesing merged commit ca24d9e into laminas:4.0.x May 14, 2023
10 checks passed
@boesing boesing deleted the qa/narrow-return-type-of-single-instance-plugin-managers branch May 14, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant