Skip to content

Conversation

ulcuber
Copy link
Contributor

@ulcuber ulcuber commented Jun 2, 2022

Description:

Fixes regression of #6890
Same as 6130e7e

Review

@Findus23
Copy link
Collaborator

Findus23 commented Jun 2, 2022

Hi,

Can you maybe explain a bit more why this change is needed? The linked PR and commit are nearly a decade old and we are currently more in the process of removing upgradephp (#16650)

@ulcuber
Copy link
Contributor Author

ulcuber commented Jun 2, 2022

@Findus23 currently dump() does nothing because it is defined as empty function in libs/upgradephp/upgrade.php. That definition must come after original var-dumper autoloading (via require_once PIWIK_VENDOR_PATH . '/autoload.php';)

@ulcuber
Copy link
Contributor Author

ulcuber commented Jun 2, 2022

@Findus23 we could move it in other place but I'm not sure where it should be

@justinvelluppillai justinvelluppillai added the Needs Review PRs that need a code review label Jun 3, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. I guess this library has never been used by anyone, as no one yet reported that it didn't work as expected.
Your fix makes it work again, so I will merge it. Thanks for that 👍

@sgiehl sgiehl added this to the 4.12.0 milestone Jun 9, 2022
@sgiehl sgiehl added Easier debugging For issues that make troubleshooting issues for developers easier. and removed Needs Review PRs that need a code review labels Jun 9, 2022
@sgiehl sgiehl merged commit a74aba9 into matomo-org:4.x-dev Jun 9, 2022
peterhashair pushed a commit that referenced this pull request Jun 16, 2022
@justinvelluppillai justinvelluppillai changed the title Vardumper overriding Improve debugging via Vardumper overriding Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easier debugging For issues that make troubleshooting issues for developers easier.
Development

Successfully merging this pull request may close these issues.

4 participants