Skip to content

Commit 73874fc

Browse files
Removed response typehint since it hinders redirects
1 parent 1a46fdc commit 73874fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All Notable changes to `laravel-robots-middleware` will be documented in this file
44

5+
## 1.0.2 - 2016-01-05
6+
7+
- Removed response typehint since it hinders redirects
8+
59
## 1.0.1 - 2016-01-05
610

711
- Moved orchestra to devdependencies

src/RobotsMiddleware.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44

55
use Closure;
66
use Illuminate\Http\Request;
7-
use Illuminate\Http\Response;
87

98
class RobotsMiddleware
109
{
11-
/**
12-
* @var \Illuminate\Http\Response
13-
*/
1410
protected $response;
1511

16-
public function handle(Request $request, Closure $next) : Response
12+
public function handle(Request $request, Closure $next)
1713
{
1814
$this->response = $next($request);
1915

@@ -34,7 +30,7 @@ public function handle(Request $request, Closure $next) : Response
3430
throw new InvalidIndexRule('An indexing rule needs to return a boolean or a string');
3531
}
3632

37-
protected function responseWithRobots(string $contents) : Response
33+
protected function responseWithRobots(string $contents)
3834
{
3935
$this->response->header('x-robots-tag', $contents);
4036

0 commit comments

Comments
 (0)