Skip to content

remove the plugin.install / plugin.uninstall hooks nothing dispatches - #2

Merged
detain merged 2 commits into
masterfrom
remove/undispatched-install-hooks
Aug 14, 2026
Merged

remove the plugin.install / plugin.uninstall hooks nothing dispatches#2
detain merged 2 commits into
masterfrom
remove/undispatched-install-hooks

Conversation

@detain

@detain detain commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Both hooks were registered as literal plugin.* keys while this plugin declares $module = 'licenses', and there is no run_event('plugin.install') anywhere in core — so neither handler has ever been reachable.

getInstall() declared service categories and prices (CloudLinux $10, KernelCare $2.95, Imunify tiers) that are long out of date and were never applied by anything.

Owner-approved removal (D-2).

On the tests: the assertions naming the two handlers are removed with them — their subject no longer exists, so this is coverage following code, not coverage dropped. tests/ContractTest.php is regenerated, not hand-edited: it pins the hook table's shape, which is precisely what changed.

Found by the shared contract harness (assertion B-9b, hook keys are dispatched).

Suite: 88 tests, 2 errors remaining — both pre-existing pear/xml_rpc2 PHP 8.2 deprecations, tracked as D-3 and unrelated to this change.

🤖 Generated with Claude Code

Both were registered as literal 'plugin.*' keys while this plugin declares
$module = 'licenses', and no run_event('plugin.install') exists anywhere in core
-- so neither handler has ever been reachable. The service categories and prices
getInstall() declared (CloudLinux $10, KernelCare $2.95, Imunify tiers) are long
out of date and were never applied by anything.

Owner-approved removal, per D-2 in docs/plugin-harness-findings.md.

The assertions that named the two handlers go with them -- their subject no
longer exists, so this is coverage following code rather than coverage dropped.
tests/ContractTest.php is regenerated rather than hand-edited: it pins the hook
table's shape, which is exactly what changed.

Found by the shared contract harness (B-9b, hook keys are dispatched).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

pear/xml_rpc2 1.1.5 emits 'Using ${var} in strings is deprecated' from
Xmlrpcext/Client.php:129. This repo's phpunit config turns warnings into
failures, so the suite could not go green while that release stood -- and the
deprecation is real, not cosmetic: PHP 9 removes the syntax outright.

Upstream FIXED it in 862987e (2025-03-05) and then never released it: the last
tag is 1.1.5 from 2022, and pear/XML_RPC2 is now an ARCHIVED repository, so there
will not be a 1.1.6 from them.

Forked to myadmin-plugins/XML_RPC2 and tagged 1.1.6 at upstream trunk. The fork
carries no patch of ours -- it is upstream's own fix, released. The package name
is unchanged (pear/xml_rpc2), so this is a repositories entry rather than a
rename, and dropping that entry reverts to packagist cleanly if upstream revives.

composer.lock is gitignored in this repo, so only the manifest is committed.

Suite goes from 2 errors to green: 88 tests, 0 failures.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@detain
detain merged commit 555dd25 into master Aug 14, 2026
5 of 6 checks passed
@detain
detain deleted the remove/undispatched-install-hooks branch August 14, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant