Skip to content

[5.0] Events backward compatibility handling#41345

Closed
Fedik wants to merge 3 commits intojoomla:5.0-devfrom
Fedik:events-fixes1
Closed

[5.0] Events backward compatibility handling#41345
Fedik wants to merge 3 commits intojoomla:5.0-devfrom
Fedik:events-fixes1

Conversation

@Fedik
Copy link
Member

@Fedik Fedik commented Aug 10, 2023

Summary of Changes

I have extracted b/c fixes from #41226 in to separated PR.

Testing Instructions

Apply patch.
Edit plugins/system/sef/src/Extension/Sef.php, add return true at top of onAfterDispatch() function.

Actual result BEFORE applying this Pull Request

An error, cannot set result for Imutable event

Expected result AFTER applying this Pull Request

No error

Link to documentations

Please select:

  • Documentation link for docs.joomla.org: IDK
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: IDK
  • No documentation changes for manual.joomla.org needed

@Fedik Fedik mentioned this pull request Aug 10, 2023
20 tasks
@Fedik Fedik added bug Small A PR which only has a small change labels Aug 10, 2023
@HLeithner
Copy link
Member

Would it make sense to check if the $name is a string and numeric?

Actually only strings are allowed but we don't have a typehint for it...

@Fedik
Copy link
Member Author

Fedik commented Aug 10, 2023

I think it is enought to check for "numeric", additional test for a string does not give us any extra value.

@HLeithner
Copy link
Member

I would do this in 4.4 because it's not an intended behaviour (if we remove it in 6 then is another story)

@Fedik
Copy link
Member Author

Fedik commented Aug 13, 2023

I can redo it to 4.4, no problem

@Fedik Fedik changed the base branch from 5.0-dev to 4.4-dev August 13, 2023 08:20
@Fedik Fedik changed the base branch from 4.4-dev to 5.0-dev August 13, 2023 08:21
@Fedik
Copy link
Member Author

Fedik commented Aug 13, 2023

PR for 4.4 #41357

@Fedik Fedik closed this Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Small A PR which only has a small change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants