Skip to content

Add WP_Background_Processing namespace to classes#111

Draft
ianmjones wants to merge 2 commits intomasterfrom
add-namespace
Draft

Add WP_Background_Processing namespace to classes#111
ianmjones wants to merge 2 commits intomasterfrom
add-namespace

Conversation

@ianmjones
Copy link
Member

Resolves #98

This will effectively be a breaking change for some people's use, so will necessitate being released as v2.0.0 with suitable warnings in the release note.

We'll do a beta release first to ensure all is well.

@ianmjones ianmjones marked this pull request as draft December 2, 2024 15:25
Copy link
Contributor

@AhmedTheGeek AhmedTheGeek left a comment

Choose a reason for hiding this comment

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

Clean refactoring to add proper namespacing to the library classes.

Positives:
• Properly namespaced classes under WP_Background_Processing\
• Tests updated to use new namespaced class names
• PHPCS exclusion added for the namespace
• README updated with usage examples and recommendation for PHP-Scoper (good call moving away from Mozart)

[nitpick] In WP_Background_Process.php, the use stdClass; import is added but I don't see stdClass being used in the visible diff. Is this actually needed, or was it added preemptively?

Appropriately flagged as a breaking change requiring v2.0.0 release.

🤖 This review was performed by AI (Sentinel) on behalf of Ahmed.

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.

Add class namespaces

2 participants