Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 85be852

Browse files
VincentLangletondrejmirtes
authored andcommitted
Type array in request methods
1 parent 9451f10 commit 85be852

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

‎stubs/Symfony/Component/HttpFoundation/Request.stub‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,47 @@ class Request
3131
*/
3232
public function getSession();
3333

34+
/**
35+
* @return string[]
36+
*/
37+
public static function getTrustedProxies(): array;
38+
39+
/**
40+
* @return string[]
41+
*/
42+
public static function getTrustedHosts(): array;
43+
44+
/**
45+
* @param string $format
46+
*
47+
* @return string[]
48+
*/
49+
public static function getMimeTypes($format): array;
50+
51+
/**
52+
* @param string|null $format
53+
* @param string|string[] $mimeTypes
54+
*/
55+
public function setFormat($format, $mimeTypes): void;
56+
57+
/**
58+
* @return string[]
59+
*/
60+
public function getLanguages(): array;
61+
62+
/**
63+
* @return string[]
64+
*/
65+
public function getCharsets(): array;
66+
67+
/**
68+
* @return string[]
69+
*/
70+
public function getEncodings(): array;
71+
72+
/**
73+
* @return string[]
74+
*/
75+
public function getAcceptableContentTypes(): array;
76+
3477
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /