Skip to content

Comments

[12.x] Refactor: add missing @throws tag in dock block#58829

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/improve-dock-blocks
Feb 14, 2026
Merged

[12.x] Refactor: add missing @throws tag in dock block#58829
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/improve-dock-blocks

Conversation

@alipowerful7
Copy link
Contributor

@alipowerful7 alipowerful7 commented Feb 14, 2026

Add @throws annotation for BindingResolutionException

Added missing @throws \Illuminate\Contracts\Container\BindingResolutionException PHPDoc annotations to methods that can throw this exception.

Changes:

  • Added @throws annotation to getEventsDispatcher() method since Container::make() can throw BindingResolutionException
  • Propagated the same annotation to getRawListeners() method as it calls getEventsDispatcher()

This improves code documentation and helps developers handle potential exceptions properly.

@alipowerful7
Copy link
Contributor Author

Un related test failed

@taylorotwell taylorotwell merged commit a9edc74 into laravel:12.x Feb 14, 2026
47 of 72 checks passed
@alipowerful7 alipowerful7 deleted the refactor/improve-dock-blocks branch February 15, 2026 14:57
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.

2 participants