[FormatAbstract] Allow child classes to overwrite DEFAULT_CHARSET

By using 'static' instead of 'self' the constant may
be overridden by child classes.
This commit is contained in:
logmanoriginal 2016-11-07 20:20:52 +01:00
parent 28e813620f
commit 4f4fb11789

View file

@ -18,7 +18,7 @@ abstract class FormatAbstract implements FormatInterface {
public function getCharset(){
$charset = $this->charset;
return is_null($charset) ? self::DEFAULT_CHARSET : $charset;
return is_null($charset) ? static::DEFAULT_CHARSET : $charset;
}
protected function setContentType($contentType){