Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While this PR might look a bit big, it's just a cleanup to harden the code. This is a review of the codebase where Typehints can be introduced.
Description
Typehints with nullsafe settings have been introduced wherever they can. While it could be regarded as a SemVer backwards breaking change, it technically is not. This is because the only way you could be calling the existing methods or properties that are not typehinted is through passing in wrong types which would result in an exception anyway.
The exception to the review is the SMS Client, which is used by Laravel and therefore will only be updated with the next major version of the SDK.
Motivation and Context
Harden API to add standards
How Has This Been Tested?
The test library has been key to this in that it has been run with each iteration of the code changes.
Types of changes
Checklist: