Skip to content

fix: clear release preflight lint on agents-api.php and the AS stub - #542

Merged
chubes4 merged 2 commits into
mainfrom
fix/release-preflight-lint
Sep 9, 2026
Merged

fix: clear release preflight lint on agents-api.php and the AS stub#542
chubes4 merged 2 commits into
mainfrom
fix/release-preflight-lint

Conversation

@chubes4

@chubes4 chubes4 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Release preflight for v0.10.0 failed on 7 findings, all pre-existing on v0.8.0/v0.9.0 but surfaced as baseline-new because #541 touched those files by one line each.

  • agents-api.php: the symbol-file tokenizer used nested for loops that deliberately advance the outer $index (PHPCS JumbledIncrementer). Rewritten as a single explicit cursor with post-increment; the T_DOUBLE_COLON look-behind adjusts from - 1 to - 2 accordingly. Two short ternaries expanded; file_get_contents on a local plugin path annotated.
  • stubs/action-scheduler-classes.php: consume the unused stub constructor params.

Full composer smoke green (the bootstrap loader is exercised by every smoke). No behavior change.

AI-generated with Claude Code via Homeboy worktree

Rewrite the symbol-file tokenizer loop as an explicit cursor (the nested
for-loops advanced the outer index on purpose, which PHPCS flags as a
jumbled incrementer), expand the two short ternaries, annotate the
local-file file_get_contents, and consume the stub constructor params.
@chubes4
chubes4 merged commit 22e00ae into main Sep 9, 2026
4 checks passed
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