bug PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
22 Mar 2024

Summary of Changes

I have no idea why I took this complicated approach of using Reflection to see if the given object implements the RouterInterface. This PR changes the code to be simpler and to just use the instanceof operator.

Testing Instructions

Codereview

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

avatar Hackwar Hackwar - open - 22 Mar 2024
avatar Hackwar Hackwar - change - 22 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Mar 2024
Category Libraries
avatar Fedik Fedik - test_item - 22 Mar 2024 - Tested successfully
avatar Fedik
Fedik - comment - 22 Mar 2024

I have tested this item ✅ successfully on 062d2f9


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

avatar Hackwar
Hackwar - comment - 22 Mar 2024

For 6.0 we should enforce the interface by typehinting the input vars properly.

avatar wilsonge wilsonge - change - 22 Mar 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-22 14:28:01
Closed_By wilsonge
Labels Added: bug PR-5.2-dev
avatar wilsonge wilsonge - close - 22 Mar 2024
avatar wilsonge wilsonge - merge - 22 Mar 2024
avatar wilsonge
wilsonge - comment - 22 Mar 2024

Trivial change so merging with a single good test + my code review

Add a Comment

Login with GitHub to post a comment