Skip to content

Conversation

@kojiromike
Copy link
Contributor

Summary

  • Replace catch (Exception) with catch (Throwable) across the codebase
  • Ensures we catch both Exception and Error subclasses (TypeError, ArgumentCountError, etc.)

Closes #24

Test plan

  • Verify existing tests still pass
  • CI checks pass

🤖 Generated with Claude Code

Since PHP 7, Throwable is the base interface for all errors and
exceptions. Catching Exception misses Error subclasses like TypeError
and ArgumentCountError.

Closes #24

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@kojiromike kojiromike merged commit 917c70d into main Jan 17, 2026
7 checks passed
@kojiromike kojiromike deleted the throwable branch January 17, 2026 04:50
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.

chore: catch Throwable instead of Exception

2 participants