mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fix for invalid example in Request phpdoc [skip ci]
This commit is contained in:

committed by
Alexander Makarov

parent
8ae2223c6a
commit
8a6f5829d4
@ -393,7 +393,7 @@ class Request extends \yii\base\Request
|
||||
|
||||
$rawContentType = $this->getContentType();
|
||||
if (($pos = strpos($rawContentType, ';')) !== false) {
|
||||
// e.g. application/json; charset=UTF-8
|
||||
// e.g. text/html; charset=UTF-8
|
||||
$contentType = substr($rawContentType, 0, $pos);
|
||||
} else {
|
||||
$contentType = $rawContentType;
|
||||
|
Reference in New Issue
Block a user