Fix for invalid example in Request phpdoc [skip ci]

This commit is contained in:
PowerGamer1
2017-07-23 23:28:54 +03:00
committed by Alexander Makarov
parent 8ae2223c6a
commit 8a6f5829d4

View File

@ -393,7 +393,7 @@ class Request extends \yii\base\Request
$rawContentType = $this->getContentType(); $rawContentType = $this->getContentType();
if (($pos = strpos($rawContentType, ';')) !== false) { if (($pos = strpos($rawContentType, ';')) !== false) {
// e.g. application/json; charset=UTF-8 // e.g. text/html; charset=UTF-8
$contentType = substr($rawContentType, 0, $pos); $contentType = substr($rawContentType, 0, $pos);
} else { } else {
$contentType = $rawContentType; $contentType = $rawContentType;