Skip to content

Commit

Permalink
[8.x] Fix the wrong of response::make() function's parameter type (#3…
Browse files Browse the repository at this point in the history
…9626)

* Fix the wrong of response::make() function's  parameter type

* Update ResponseFactory.php

* Update Response.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
hmingv and taylorotwell authored Nov 16, 2021
1 parent 62273d2 commit d68685c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Routing/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface ResponseFactory
/**
* Create a new response instance.
*
* @param string $content
* @param array|string $content
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @method static \Illuminate\Http\RedirectResponse redirectToAction(string $action, mixed $parameters = [], int $status = 302, array $headers = [])
* @method static \Illuminate\Http\RedirectResponse redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null)
* @method static \Illuminate\Http\RedirectResponse redirectToRoute(string $route, mixed $parameters = [], int $status = 302, array $headers = [])
* @method static \Illuminate\Http\Response make(string $content = '', int $status = 200, array $headers = [])
* @method static \Illuminate\Http\Response make(array|string $content = '', int $status = 200, array $headers = [])
* @method static \Illuminate\Http\Response noContent($status = 204, array $headers = [])
* @method static \Illuminate\Http\Response view(string $view, array $data = [], int $status = 200, array $headers = [])
* @method static \Symfony\Component\HttpFoundation\BinaryFileResponse download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')
Expand Down

0 comments on commit d68685c

Please sign in to comment.