mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[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
@ -18,7 +18,7 @@ abstract class FormatAbstract implements FormatInterface {
|
|||||||
public function getCharset(){
|
public function getCharset(){
|
||||||
$charset = $this->charset;
|
$charset = $this->charset;
|
||||||
|
|
||||||
return is_null($charset) ? self::DEFAULT_CHARSET : $charset;
|
return is_null($charset) ? static::DEFAULT_CHARSET : $charset;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function setContentType($contentType){
|
protected function setContentType($contentType){
|
||||||
|
Loading…
Reference in New Issue
Block a user