Skip to content

chore: release v2.0.3 - #58

Merged
ogorzalka merged 1 commit into
mainfrom
release/2.0.3
Nov 26, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
release/2.0.3

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Patch release since v2.0.2: invokable objects and Class::method strings can be registered without an argument count, and an asynchronous handler naming a non-public method fails at once. The two entries each appeared twice under Unreleased (stacked cherry-picks); each is now listed once.

No runtime constraint changes (composer.json only changes the PHPStan scripts).

Branch release/2.0.3 into main. Proposed tag after the merge: v2.0.3. Only CHANGELOG.md changes.

Checked

  • composer qa:fast and composer qa pass locally (PHP 8.4, 2G memory limit). Test runs reported: 1 incomplete, 9 passed (16 assertions); 1 incomplete, 555 passed (1706 assertions).
  • CI of main at b37340b, the base of this branch, is green (Harness run 45618357388: quality gates, PHP 8.3 and 8.4 with prefer-lowest and prefer-stable, downstream framework).
  • The "incomplete" test, where one is reported, is in the Arch suite of main: this branch only changes the CHANGELOG.
  • Type coverage is unchanged against the ratchet. Line coverage and mutation score were not measured locally.

Not verified

  • The compare links at the foot of the CHANGELOG stop at 1.4.1 and were left as they are.
  • The WordPress integration suite was not run: no Docker locally, and its CI job is skipped in that run. Semgrep is not installed locally (the CI quality gates run it).

Release notes (v2.0.3)

Fixed

  • Registering an invokable object (Action::add('init', new Handler)) without an argument count threw a TypeError, and a static method written as a string ('Handler::run') threw CallbackAnalysisFailedException: the parameters were counted with ReflectionFunction, which reads neither. They are now read from the object's __invoke() and from the named static method.
  • An asynchronous handler whose descriptor names a private or protected method was retried as many times as tries allowed, each attempt failing the same way with The handler of … is not callable. Resolving the descriptor now fails at once with an UnresolvableHandler that says the method is not public.

@ogorzalka
ogorzalka merged commit a27f9b8 into main Nov 26, 2026
15 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