Skip to content

fix: Make exception params nullable and update test#26

Merged
jwadhams merged 2 commits intodevelopmentfrom
fix-PHP-8.4-nullables
Apr 2, 2026
Merged

fix: Make exception params nullable and update test#26
jwadhams merged 2 commits intodevelopmentfrom
fix-PHP-8.4-nullables

Conversation

@skybluesofa
Copy link
Copy Markdown
Contributor

Allow nullable types for several exception constructors and update a test helper signature.

Changes:

  • NotFoundException: make $message nullable (?string) and allow nullable $previous.
  • RemoteAuthentication: make $message nullable (?string).
  • UpstreamException: import Throwable and make $previous nullable (?Throwable).
  • MocksGuzzleInstance: allow $count to be nullable (?int) in assertTapperRequestLike.

These changes prevent strict type errors when null values are passed and align signatures across exceptions and tests.

Allow nullable types for several exception constructors and update a test helper signature.

Changes:
- NotFoundException: make $message nullable (?string) and allow nullable $previous.
- RemoteAuthentication: make $message nullable (?string).
- UpstreamException: import Throwable and make $previous nullable (?Throwable).
- MocksGuzzleInstance: allow $count to be nullable (?int) in assertTapperRequestLike.

These changes prevent strict type errors when null values are passed and align signatures across exceptions and tests.
@skybluesofa skybluesofa requested review from bbene and jwadhams March 12, 2026 14:13
@jwadhams jwadhams merged commit 881a4bf into development Apr 2, 2026
14 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.

2 participants