Skip to content

Commit e019b49

Browse files
committed
Merge pull request dingo#780 from irazasyed/patch-1
Fixes Laravel 5.2 Compatibility Issue.
2 parents 02dd0e9 + 263555d commit e019b49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Http/Response.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Dingo\Api\Event\ResponseIsMorphing;
99
use Dingo\Api\Event\ResponseWasMorphed;
1010
use Illuminate\Contracts\Support\Arrayable;
11-
use Symfony\Component\HttpFoundation\Cookie;
1211
use Illuminate\Http\Response as IlluminateResponse;
1312
use Illuminate\Events\Dispatcher as EventDispatcher;
1413
use Illuminate\Database\Eloquent\Model as EloquentModel;
@@ -307,11 +306,11 @@ public function getMeta()
307306
/**
308307
* Add a cookie to the response.
309308
*
310-
* @param \Symfony\Component\HttpFoundation\Cookie $cookie
309+
* @param \Symfony\Component\HttpFoundation\Cookie|mixed $cookie
311310
*
312311
* @return \Dingo\Api\Http\Response
313312
*/
314-
public function cookie(Cookie $cookie)
313+
public function cookie($cookie)
315314
{
316315
return $this->withCookie($cookie);
317316
}

0 commit comments

Comments
 (0)