Skip to content

fix: unblock Dependabot by aligning phpcs coding-standards deps - #1107

Merged
selul merged 4 commits into
developmentfrom
fix/unblock-dependabot-phpcs-deps
Aug 4, 2026
Merged

fix: unblock Dependabot by aligning phpcs coding-standards deps#1107
selul merged 4 commits into
developmentfrom
fix/unblock-dependabot-phpcs-deps

Conversation

@selul

@selul selul commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Why

Dependabot has produced no PRs for any dependency since Jan 2025 on this repo. The Dependabot job log shows every dependency (including themeisle-sdk) reported update_not_possible with:

codeinwp/phpcs-ruleset dev-main requires dealerdirect/phpcodesniffer-composer-installer ^0.7.0
  -> conflicts with your lock (installer 1.2.1)

The locked phpcs-ruleset (an old dev-main commit) required installer ^0.7.0, contradicting the rest of the tree — so Composer could not resolve any update, blocking the whole repo.

What

  • composer.json: dealerdirect/phpcodesniffer-composer-installer ^0.7.2^1.0 (matches current phpcs-ruleset).
  • Regenerated composer.lock: phpcs-ruleset dev-main → latest, squizlabs/php_codesniffer, phpcs-variable-analysis, phpcompatibility refreshed so the tree resolves.
  • Bumped codeinwp/themeisle-sdk 3.3.54 → 3.3.58 while unblocked.

wp-coding-standards/wpcs is intentionally left at 2.x (its 3.x bump is capped upstream by wptrt/wpthemereview and is a separate, org-wide toolchain task). After this merges, Dependabot can resolve and resume opening update PRs.

Dependabot could not resolve any update for this repo (no Dependabot PRs
since Jan 2025) because the locked codeinwp/phpcs-ruleset (dev-main)
required dealerdirect/phpcodesniffer-composer-installer ^0.7.0 while the
lock resolved installer to 1.2.1 — an unresolvable conflict, so every
dependency (including codeinwp/themeisle-sdk) was reported
update_not_possible.

- Bump installer constraint ^0.7.2 -> ^1.0 to match phpcs-ruleset's
  current requirement
- Refresh the lock (phpcs-ruleset dev-main, squizlabs/php_codesniffer,
  phpcs-variable-analysis, phpcompatibility) so the tree resolves again
- Bring codeinwp/themeisle-sdk up to 3.3.58 while unblocked

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pirate-bot

pirate-bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Plugin build for b68178e is ready 🛎️!

selul and others added 3 commits August 4, 2026 11:32
The refreshed coding-standards toolchain surfaced two pre-existing
docblock violations in class-rop-scheduler-model.php (missing @PARAM type
and spacing). Fixed so PHP Lint passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…eline

The docblock now uses a typed array (mixed[]) so it satisfies both the
updated PHPCS (MissingParamType) and PHPStan (missingType.iterableValue).
Removed the now-obsolete phpstan-baseline.neon entry that ignored the old
"parameter $new_events with no type specified" error, which no longer
occurs and would otherwise be reported as an unmatched ignore.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ningful

Using mixed[] made PHPStan treat the parameter as always-array, flagging
the is_array() guard as always-true. `mixed` satisfies PHPCS's param-type
requirement while preserving the runtime guard and avoiding the
iterable-value rule.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@selul
selul merged commit bccea64 into development Aug 4, 2026
7 of 8 checks passed
@selul
selul deleted the fix/unblock-dependabot-phpcs-deps branch August 4, 2026 08:53
@pirate-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 9.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants