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

[5.1] Typehint false for getItem #42972

Merged
merged 2 commits into from Mar 17, 2024
Merged

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Mar 6, 2024

Summary of Changes

To improve compatibility with PHP type checking tools like PHPStan, we need to narrow the boolean return type, as a boolean is only returned as false.

Code review only.

@laoneo laoneo changed the title Typehint false for getItem [5.1] Typehint false for getItem Mar 6, 2024
@Quy
Copy link
Contributor

Quy commented Mar 8, 2024

I have tested this item ✅ successfully on a4a5435


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42972.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on a4a5435


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42972.

@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42972.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 8, 2024
@bembelimen bembelimen merged commit 8441b39 into joomla:5.1-dev Mar 17, 2024
4 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 17, 2024
@bembelimen bembelimen added this to the Joomla! 5.1.0 milestone Mar 17, 2024
@bembelimen
Copy link
Contributor

Thx

@laoneo laoneo deleted the getitem/return branch March 18, 2024 06:47
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

6 participants