-
Notifications
You must be signed in to change notification settings - Fork 80
Add refactored subscription migration system #2134
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
base: release
Are you sure you want to change the base?
Changes from all commits
ede6b26
6d84f63
0088657
2333205
afe52fe
b1c46ce
3f9bf8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,78 @@ | ||||||
| # CLAUDE.md | ||||||
|
|
||||||
| This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. | ||||||
|
|
||||||
| ## Project Overview | ||||||
|
|
||||||
| PayPal for WooCommerce (by Angell EYE) — a WordPress/WooCommerce payment gateway plugin supporting multiple PayPal products. Version 4.6.5, requires PHP 5.4+, WordPress 5.8+, WooCommerce 3.0+. | ||||||
|
|
||||||
| ## Commands | ||||||
|
|
||||||
| ```bash | ||||||
| # Install dev dependencies | ||||||
| composer install | ||||||
|
|
||||||
| # Lint (PHPCS with WordPress standards) | ||||||
| composer lint # Full lint check | ||||||
| composer lint:errors # Errors only (uses phpcs-errors.xml.dist) | ||||||
| composer lint:fix # Auto-fix with phpcbf | ||||||
|
|
||||||
| # Lint a specific file | ||||||
| vendor/bin/phpcs --standard=phpcs.xml.dist path/to/file.php | ||||||
| vendor/bin/phpcbf --standard=phpcs.xml.dist path/to/file.php | ||||||
| ``` | ||||||
|
|
||||||
| No build step — JS/CSS are maintained directly (no Webpack/Gulp). No automated test suite exists. | ||||||
|
||||||
| No build step — JS/CSS are maintained directly (no Webpack/Gulp). No automated test suite exists. | |
| No build step — JS/CSS are maintained directly (no Webpack/Gulp). PHPUnit test suite available — run via `composer test`. |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -42,6 +42,12 @@ public function angelleye_ppcp_load_class($loadSettingsFields = false) { | |||||||||||||||||||||
| include_once ( PAYPAL_FOR_WOOCOMMERCE_PLUGIN_DIR . '/ppcp-gateway/class-angelleye-paypal-ppcp-migration.php'); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| AngellEYE_PayPal_PPCP_Migration::instance(); | ||||||||||||||||||||||
| // Load refactored migration system (subscription migration with state tracking) | ||||||||||||||||||||||
| $migration_autoload = PAYPAL_FOR_WOOCOMMERCE_PLUGIN_DIR . '/src/Migration/autoload.php'; | ||||||||||||||||||||||
| if (file_exists($migration_autoload) && !function_exists('angelleye_ppcp_migration_init')) { | ||||||||||||||||||||||
| include_once $migration_autoload; | ||||||||||||||||||||||
| angelleye_ppcp_migration_init(); | ||||||||||||||||||||||
|
Comment on lines
+46
to
+49
|
||||||||||||||||||||||
| $migration_autoload = PAYPAL_FOR_WOOCOMMERCE_PLUGIN_DIR . '/src/Migration/autoload.php'; | |
| if (file_exists($migration_autoload) && !function_exists('angelleye_ppcp_migration_init')) { | |
| include_once $migration_autoload; | |
| angelleye_ppcp_migration_init(); | |
| if (defined('PHP_VERSION_ID') && PHP_VERSION_ID >= 80100) { | |
| $migration_autoload = PAYPAL_FOR_WOOCOMMERCE_PLUGIN_DIR . '/src/Migration/autoload.php'; | |
| if (file_exists($migration_autoload) && !function_exists('angelleye_ppcp_migration_init')) { | |
| include_once $migration_autoload; | |
| angelleye_ppcp_migration_init(); | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project overview still states a minimum PHP version of 5.4+, but this PR raises Composer’s PHP requirement to 8.1. Update this line to avoid misleading contributors/tools.