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 PHP 7 compatibility when attaching observer type of FOFUtilsObservableEvent #10742

Merged
merged 2 commits into from Jun 9, 2016
Merged

Conversation

piotrmocko
Copy link
Contributor

@piotrmocko piotrmocko commented Jun 7, 2016

Summary of Changes

Fix PHP 7 compatibility when attaching observer type of FOFUtilsObservableEvent

Read this issue akeeba/fof#593
and this commit 791f561

Testing Instructions

Just review the code. When you will attach more then one observer type of FOFUtilsObservableEvent with the same event name (e.g. onAfterGetItem) then only the first observer will be fired twice.

@wilsonge
Copy link
Contributor

wilsonge commented Jun 8, 2016

Can we please stick to what Nic is doing in FOF please :) From the issue you linked to Nic put the end() function higher up in the function (akeeba/fof@121eff4)

@piotrmocko
Copy link
Contributor Author

I have changed it to match akeeba/fof@121eff4

@piotrmocko piotrmocko closed this Jun 9, 2016
@piotrmocko piotrmocko reopened this Jun 9, 2016
@wilsonge wilsonge merged commit 8cd3eba into joomla:staging Jun 9, 2016
@wilsonge
Copy link
Contributor

wilsonge commented Jun 9, 2016

Merged :) Thanks!

@wilsonge wilsonge added this to the Joomla 3.6.0 milestone Jun 9, 2016
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.

None yet

3 participants