Skip to content

Commit 7df80f9

Browse files
committed
Add code completion for content-types
1 parent cb99c27 commit 7df80f9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.phpstorm.meta.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,27 @@
251251
0,
252252
argumentsSet('json_encode_flags')
253253
);
254+
registerArgumentsSet(
255+
'content_types',
256+
'application/json',
257+
'application/octet-stream',
258+
'application/x-www-form-urlencoded',
259+
'application/xml',
260+
'multipart/form-data',
261+
'text/css',
262+
'text/html',
263+
'text/javascript',
264+
'text/markdown',
265+
'text/plain',
266+
'text/x-php',
267+
'text/x-rst',
268+
'text/xml',
269+
);
270+
expectedArguments(
271+
\Framework\HTTP\Client\Request::setContentType(),
272+
0,
273+
argumentsSet('content_types')
274+
);
254275
registerArgumentsSet(
255276
'response_headers',
256277
\Framework\HTTP\ResponseHeader::ACCEPT_RANGES,

0 commit comments

Comments
 (0)