Skip to content

chore(deps): update pollora/hook requirement from ^2.0.2 to ^2.0.3 - #762

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/hook-tw-2.0.3
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/hook-tw-2.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on pollora/hook to permit the latest version.

Release notes

Sourced from pollora/hook's releases.

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.
Changelog

Sourced from pollora/hook's changelog.

[2.0.3] - 2026-11-26

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.

[2.0.2] - 2026-11-25

Fixed

  • A closure registered after another closure was freed no longer inherits that closure's argument count. The count was cached under the closure's object ID, which PHP hands to the next closure once the first is freed, so WordPress could be told to pass a callback too few arguments (an ArgumentCountError) or too many. The count is now held by the closure itself and goes with it.

Changed

  • AbstractHook throws named exceptions from the new Pollora\Hook\Domain\Exceptions namespace instead of a bare \RuntimeException: HookMethodNotFoundException (a class registered without a method has no method named after the hook), CallbackResolutionFailedException (the class of a callback cannot be built; it wraps the cause, with its code) and CallbackAnalysisFailedException (reflection cannot read the callable). Their messages say how to fix the problem. They extend HookException, which extends \RuntimeException, so a catch (\RuntimeException) keeps working and the existing message prefixes (Failed to resolve '…', Method '…' not found in class '…', Failed to analyze callable:) are unchanged
  • The daily recovery task is registered through Recovery::run(), which returns nothing as an action callback must; Recovery::recover() still returns the number of executions scheduled again

Internal

  • The WordPress suite (composer test:integration, still available as composer test:wordpress) also covers the Action and Filter facades against WordPress's own hook tables, and no longer defines DISABLE_WP_CRON a second time when the installed wp-config.php already does
  • The Architecture test suite runs tests/Arch.php, which the default run left out
  • PHPStan runs with szepeviktor/phpstan-wordpress (WordPress stubs and rules), at level 5; the ignores it makes unnecessary are removed and unmatched ignores are reported again
  • The WordPress test fixtures use wp_doing_cron() instead of the DOING_CRON constant
  • The unserialize() of a queued closure carries a nosemgrep justification: the payload's HMAC, keyed from wp_salt(), is checked before it is read

[2.0.1] - 2026-10-14

Changed

  • pollora/schedule ^1.0 is accepted alongside ^0.1.2: the 1.0.0 of the schedule package is a stable API and no code changed. No change to this package's API

[2.0.0] - 2026-10-13

Asynchronous actions queue through the drivers of pollora/schedule. Work queued by 1.x runs unchanged; the only break is the two removed driver classes below.

Changed

  • WP-Cron and Action Scheduler are the drivers of pollora/schedule, which the package now requires: Async\Drivers\ScheduledDriver queues through them and keeps what is the hook's own, the message an event carries and where the payload lives. Nothing changes for what is already queued: the hook, the Action Scheduler groups (pollora or the queue name), the identifier-only WP-Cron events and the pollora_async_ options are the same, so work queued by 1.x runs once 2.0 is installed. ->async(), #[Async], Async::fake(), via() and their options do not change
  • Async::listen() keeps pollora/async/run and pollora/async/recover on WP-Cron (the pollora/schedule/protected_hooks filter), whatever driver the site gave pollora/schedule: via('wp-cron') still means WP-Cron
  • An Action Scheduler action of the hook lives in its own group and is never in the cron index of pollora/schedule

Removed

  • Async\Drivers\WpCronDriver and Async\Drivers\ActionSchedulerDriver, with no alias. Code that used them directly (the framework does not) uses ScheduledDriver::wpCron() and ScheduledDriver::actionScheduler(), or the drivers of pollora/schedule
  • WpCronDriver::handles() and claim(): use PayloadStore. The recovery task (recover(), scheduleRecovery(), RECOVERY_HOOK, RECOVERY_GRACE) moved to Async\Recovery

[1.5.0] - 2026-10-09

Added

... (truncated)

Commits
  • a27f9b8 Merge pull request #58 from Pollora/release/2.0.3
  • 816f073 chore: release v2.0.3
  • b37340b Merge pull request #57 from Pollora/chore/phpstan-level-8
  • 3a14ca4 Merge pull request #56 from Pollora/chore/phpstan-level-7
  • b5fb7e3 Merge chore/phpstan-level-7 into chore/phpstan-level-8
  • 149352b Merge origin/main into chore/phpstan-level-7
  • 0932841 Merge pull request #55 from Pollora/chore/phpstan-level-6
  • 069a301 Merge pull request #54 from Pollora/fix/non-public-handler-method-fails-at-re...
  • 3c46860 Merge origin/main into the non-public handler fix
  • 8531c52 Merge pull request #53 from Pollora/fix/argument-detection-invokable-and-stat...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pollora/hook](https://github.com/Pollora/hook) to permit the latest version.
- [Release notes](https://github.com/Pollora/hook/releases)
- [Changelog](https://github.com/Pollora/hook/blob/main/CHANGELOG.md)
- [Commits](Pollora/hook@v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: pollora/hook
  dependency-version: 2.0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Dec 5, 2026
@dependabot @github

dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automerge. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions
github-actions Bot enabled auto-merge (squash) December 5, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants