forked from blallo/rss-bridge
[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:
parent
28e813620f
commit
4f4fb11789
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue