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

Improve type inference for FormElementManager::get() #260

Merged
merged 5 commits into from
Jan 10, 2024

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jan 9, 2024

Currently, if you provide FormElementManager::get() with a FQCN, it infers ElementInterface instead of the given FQCN. This patch fixes that…

There are some un-related psalm issues from recent patches. Let me know if you want these baselined here

@gsteel gsteel added this to the 3.19.0 milestone Jan 9, 2024
Copy link
Member

@Xerkus Xerkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Psalm template constraints are not used in conditional block. See comment

src/FormElementManager.php Outdated Show resolved Hide resolved
@gsteel gsteel force-pushed the form-element-manager-template branch from b27ab4c to cb68f54 Compare January 10, 2024 14:38
…ed the same as a string literal

Signed-off-by: George Steel <[email protected]>
@Xerkus Xerkus merged commit ee4a3b6 into laminas:3.19.x Jan 10, 2024
11 checks passed
@gsteel gsteel deleted the form-element-manager-template branch January 10, 2024 14: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.

3 participants