Skip to content

Commit

Permalink
Add Request.stubphp
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Mar 17, 2024
1 parent b6d90df commit 853e574
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions stubs/Http/Request.stubphp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Illuminate\Http;

use Symfony\Component\HttpFoundation\Request as SymfonyRequest;

class Request extends SymfonyRequest
{
/**
* Retrieve a header from the request.
*
* @template TDefault of string|array<string, string>|null
*
* @param string|null $key
* @param TDefault $default
* @return ($key is null ? array<string, array<int, string|null>> : string|TDefault)
*/
public function header($key = null, $default = null) {}

/**
* Get the route handling the request.
*
* @template TDefault
*
* @param string|null $param
* @param TDefault $default
* @psalm-return $param is null ? \Illuminate\Routing\Route : TDefault|string|null
*/
public function route($param = null, $default = null) {}
}

0 comments on commit 853e574

Please sign in to comment.