Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Add @throws ConnectionException tag on Http methods for IDE support #51066

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

masoudtajer
Copy link
Contributor

This pull request just adds the @throws ConnectionException tag to the head, get, post, put, patch, and delete methods on the HTTP class for support IDE suggestion.

if only use this method after the facade i.e. Http::post() IDE can't suggest but if used after any other method such as asJson() IDE can suggest exceptions and developers notice that this method throws exceptions.

Some time ago in my company Due to not being aware of this exception, we encountered an error due to a connection error and there is no complete explanation about this exception in the Laravel documentation.

@driesvints driesvints changed the title add @throws ConnectionException tag on Http methods for IDE support [11.x] dd @throws ConnectionException tag on Http methods for IDE support Apr 15, 2024
@driesvints driesvints changed the title [11.x] dd @throws ConnectionException tag on Http methods for IDE support [11.x] Add @throws ConnectionException tag on Http methods for IDE support Apr 15, 2024
@masoudtajer
Copy link
Contributor Author

this EncrypterTest::testRawStringEncryptionWithPreviousKeys test is failed that not related to my PR

@masoudtajer masoudtajer requested a review from driesvints April 15, 2024 09:19
@taylorotwell taylorotwell merged commit 21d7ad9 into laravel:11.x Apr 15, 2024
28 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.

3 participants