Skip to content

fix: Make exception params nullable and update test#26

Open
skybluesofa wants to merge 2 commits intodevelopmentfrom
fix-PHP-8.4-nullables
Open

fix: Make exception params nullable and update test#26
skybluesofa wants to merge 2 commits intodevelopmentfrom
fix-PHP-8.4-nullables

Conversation

@skybluesofa
Copy link
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
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.

1 participant