Skip to content

Comments

5.0 Prefer is_object() vs gettype()#41670

Merged
HLeithner merged 1 commit intojoomla:5.0-devfrom
Denitz:5.0_Use_is_object()
Sep 12, 2023
Merged

5.0 Prefer is_object() vs gettype()#41670
HLeithner merged 1 commit intojoomla:5.0-devfrom
Denitz:5.0_Use_is_object()

Conversation

@Denitz
Copy link
Contributor

@Denitz Denitz commented Sep 8, 2023

Summary of Changes

Use is_object() instead of gettype() comparison to simplify the logic.

Testing Instructions

Apply patch.

Actual result BEFORE applying this Pull Request

See usual code.

Expected result AFTER applying this Pull Request

See nice code.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@Denitz Denitz changed the title fix 5.0 Prefer is_object() vs gettype() Sep 8, 2023
@HLeithner HLeithner merged commit f58f004 into joomla:5.0-dev Sep 12, 2023
@HLeithner
Copy link
Member

thanks

@HLeithner
Copy link
Member

merged by code review, is_object seems to be much faster then gettype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants