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

Fix layout() return type #248

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

InvisibleSmiley
Copy link

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

Bring PhpRenderer @method for layout() in sync with Layout::__invoke and remove null from that method's return type union (@return). Result reflects reality and thus helps static analysis tools to reduce detection of false negatives.

See #247.

Signed-off-by: Jens Hatlak <jens.hatlak@check24.de>
@gsteel gsteel modified the milestone: 2.35.0 Jun 4, 2024
@gsteel gsteel self-assigned this Jun 4, 2024
@gsteel gsteel added Bug Something isn't working Documentation labels Jun 4, 2024
@gsteel gsteel linked an issue Jun 4, 2024 that may be closed by this pull request
Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

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

Thanks @InvisibleSmiley 👍

@gsteel gsteel merged commit f597148 into laminas:2.35.x Jun 4, 2024
10 checks passed
@InvisibleSmiley InvisibleSmiley deleted the fix-layout branch June 4, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PhpRenderer @method for layout() return type is incomplete
3 participants