Skip to content

Add "AfterThrowing" advice type - #99

Merged
WalterWoshid merged 1 commit into
okapi-web:masterfrom
WalterWoshid:feat/after-throwing-advice
Nov 13, 2026
Merged

WalterWoshid merged 1 commit into
okapi-web:masterfrom
WalterWoshid:feat/after-throwing-advice

Conversation

@WalterWoshid

Copy link
Copy Markdown
Contributor
  • Added #[AfterThrowing] advice for methods that throw an exception or PHP error
  • Added exception filtering and getThrowable()
  • Fixed matching and execution order for repeated advice attributes, including cached classes
  • Added tests and updated documentation

Tested on PHP 8.4 and 8.5.

Closes #38

Add exception filtering and getThrowable(), preserving the original
throwable after advice execution.

Preserve repeated declarations, method filters, and execution order
through weaving and cache restoration. Invalidate legacy caches.

Add documentation and regression tests.
@WalterWoshid WalterWoshid added the enhancement 🎆 New feature or request label Nov 13, 2026
@WalterWoshid WalterWoshid self-assigned this Nov 13, 2026
@WalterWoshid
WalterWoshid merged commit 0fe8784 into okapi-web:master Nov 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🎆 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"AfterThrowing" Advice Type

1 participant