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

Remove usage of create_function so PHP 7.2 does not complain #8478

Merged
merged 2 commits into from
Jan 11, 2018

Conversation

oskosk
Copy link
Contributor

@oskosk oskosk commented Jan 6, 2018

Part of #8156.

Changes proposed in this Pull Request:

  • Replaces usage of create_function in class.jetpack-sync-test-replicastore.php for regular foreach loops and a set of new class methods that serve as callback to array_map.

Testing instructions:

  • Run tests on PHP 7.0, PHP 7.1 or PHP 5.6 and confirm they pass.

Updated code to be compatible with PHP 7.2

oskosk added 2 commits January 6, 2018 17:53
…nt_meta_by_id functions from Sync ReplicaStore test

It’s weird to have to maintain PHP 5.2 and PHP 7.2 compatibility in
these cases as we can’t create anonymous functions and use $meta_id in
the filtering function. A one-liner becomes a monster.
@oskosk oskosk added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. [Type] Janitorial labels Jan 6, 2018
@oskosk oskosk requested a review from a team as a code owner January 6, 2018 20:59
@jeherve jeherve mentioned this pull request Jan 6, 2018
13 tasks
@oskosk oskosk added this to the 5.8 milestone Jan 6, 2018
@dereksmart dereksmart added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Jan 10, 2018
@oskosk oskosk merged commit 619c4ad into master Jan 11, 2018
@oskosk oskosk deleted the remove/create_function-usage branch January 11, 2018 01:38
jeherve added a commit that referenced this pull request Jan 29, 2018
zinigor pushed a commit that referenced this pull request Jan 30, 2018
* Changelog 5.8: create base for changelog.

* Update 5.8 release post link

* fix 5.8 release date

* Updates to plugin description

* Changelog: add #8499

* Changelog: add #8506

* Changelog: add #8509

* Changelog: add #8516

* Changelog: add #8517

* Changelog: add #8523

* Changelog: add #8547

* Changelog: add #8496

* Changelog: add #8584

* Changelog: add #8595

* Changelog: add #8445

* Changelog: add #8431

* Changelog: add #8284

* Changelog: add #8270

* Changelog: add #8124

* Changelog: add #8581

* Changelog: add #8463

* Changelog: add #8568 (#8646)

* Updates to testing list and changelog

* Changelog: add #8443

* Changelog: add #8459

* Changelog: add #8469

* Changelog: add #8464

* Changelog: add #8478 and #8479

* Changelog: add #8483

* Changelog: add #8488

* Changelog: add #8513

* Changelog: add #8555

* Changelog: add #8565

* Changelog: add #8601

* Changelog: add #8612

* Changelog: add first pass at Search items.

* Changelog: add more info to help test Search.

* Changelog: add #8144

* Changelog: add #8313

* Changelog: add #8419

* Changelog: add #8465

* Changelog: add #8515

* Changelog: add #8587

* Changelog: add #8591

* Changelog: add #8659

* Changelog: add #8661

* Changelog: add #8671

* Changelog: add 5.7.1 to archived changelog too.

* Reverted changes to readme, removed entry about backups.
@kraftbj kraftbj removed the [Status] Ready to Merge Go ahead, you can push that green button! label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants