Skip to content

Commit

Permalink
Type array in request methods
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and ondrejmirtes committed Jun 10, 2022
1 parent 9451f10 commit 85be852
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions stubs/Symfony/Component/HttpFoundation/Request.stub
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,47 @@ class Request
*/
public function getSession();

/**
* @return string[]
*/
public static function getTrustedProxies(): array;

/**
* @return string[]
*/
public static function getTrustedHosts(): array;

/**
* @param string $format
*
* @return string[]
*/
public static function getMimeTypes($format): array;

/**
* @param string|null $format
* @param string|string[] $mimeTypes
*/
public function setFormat($format, $mimeTypes): void;

/**
* @return string[]
*/
public function getLanguages(): array;

/**
* @return string[]
*/
public function getCharsets(): array;

/**
* @return string[]
*/
public function getEncodings(): array;

/**
* @return string[]
*/
public function getAcceptableContentTypes(): array;

}

0 comments on commit 85be852

Please sign in to comment.