Skip to content

Commit

Permalink
Remove dependency on automattic/jetpack-mu-wpcom that was added for P…
Browse files Browse the repository at this point in the history
…han and causes odd dependency loops (#41931)

Make Phan happy in a different way for now.

Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
jeryj and anomiex authored Feb 20, 2025
1 parent 4287fda commit 7a3559d
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
4 changes: 4 additions & 0 deletions projects/packages/masterbar/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
__DIR__ . '/../../../plugins/jetpack/modules/scan/class-admin-bar-notice.php',
__DIR__ . '/../../../plugins/jetpack/modules/stats.php',
__DIR__ . '/../../../plugins/wpcomsh/private-site/private-site.php', // function site_is_private

// Make an exception to the above for packages/jetpack-mu-wpcom. Pulling in that whole package here causes more trouble than it solves.
__DIR__ . '/../../../packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php', // class Jetpack_Custom_CSS_Enhancements
__DIR__ . '/../../../packages/jetpack-mu-wpcom/src/features/wpcom-admin-interface/wpcom-admin-interface.php', // function wpcom_is_duplicate_views_experiment_enabled
),
)
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Remove dependency on automattic/jetpack-mu-wpcom that was added for Phan and causes odd dependency loops. Make Phan happy in a different way for now.


6 changes: 0 additions & 6 deletions projects/packages/masterbar/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"brain/monkey": "^2.6.2",
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "@dev",
"automattic/jetpack-mu-wpcom": "@dev",
"automattic/patchwork-redefine-exit": "@dev",
"automattic/jetpack-test-environment": "@dev"
},
Expand Down Expand Up @@ -75,11 +74,6 @@
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-masterbar/compare/v${old}...v${new}"
},
"dependencies": {
"test-only": [
"packages/jetpack-mu-wpcom"
]
},
"mirror-repo": "Automattic/jetpack-masterbar",
"textdomain": "jetpack-masterbar",
"version-constants": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Update composer.lock.


8 changes: 1 addition & 7 deletions projects/plugins/jetpack/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Update composer.lock.


8 changes: 1 addition & 7 deletions projects/plugins/mu-wpcom-plugin/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Update composer.lock.


8 changes: 1 addition & 7 deletions projects/plugins/wpcomsh/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a3559d

Please sign in to comment.