Skip to content

Commit

Permalink
fix: Add some @throws (#50969)
Browse files Browse the repository at this point in the history
  • Loading branch information
saMahmoudzadeh authored Apr 9, 2024
1 parent 89515a9 commit d2a8471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* @throws \Illuminate\Http\Exceptions\HttpResponseException
*/
function abort($code, $message = '', array $headers = [])
{
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Routing/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public function streamJson($data, $status = 200, $headers = [], $encodingOptions
* @param array $headers
* @param string|null $disposition
* @return \Symfony\Component\HttpFoundation\StreamedResponse
*
* @throws \Illuminate\Routing\Exceptions\StreamedResponseException
*/
public function streamDownload($callback, $name = null, array $headers = [], $disposition = 'attachment')
{
Expand Down

0 comments on commit d2a8471

Please sign in to comment.