Skip to content

Commit 3cc1de3

Browse files
committed
Merge pull request barryvdh#410 from sebdesign/patch-1
Type-hint appropriate arguments
2 parents 23672cb + 3ff50bd commit 3cc1de3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LaravelDebugbar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public function getJavascriptRenderer($baseUrl = null, $basePath = null)
456456
* @param \Symfony\Component\HttpFoundation\Response $response
457457
* @return \Symfony\Component\HttpFoundation\Response
458458
*/
459-
public function modifyResponse($request, $response)
459+
public function modifyResponse(Request $request, Response $response)
460460
{
461461
$app = $this->app;
462462
if ($app->runningInConsole() || !$this->isEnabled() || $this->isDebugbarRequest()) {
@@ -593,7 +593,7 @@ protected function isDebugbarRequest()
593593
* @param \Symfony\Component\HttpFoundation\Request $request
594594
* @return bool
595595
*/
596-
protected function isJsonRequest($request)
596+
protected function isJsonRequest(Request $request)
597597
{
598598
// If XmlHttpRequest, return true
599599
if ($request->isXmlHttpRequest()) {
@@ -841,7 +841,7 @@ protected function selectStorage(DebugBar $debugbar)
841841
}
842842
}
843843

844-
protected function addClockworkHeaders($response)
844+
protected function addClockworkHeaders(Response $response)
845845
{
846846
$prefix = $this->app['config']->get('debugbar.route_prefix');
847847
$response->headers->set('X-Clockwork-Id', $this->getCurrentRequestId(), true);

0 commit comments

Comments
 (0)