From 4f4fb11789e829ff6a0be1f21146f6d5518f2199 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 7 Nov 2016 20:20:52 +0100 Subject: [PATCH] [FormatAbstract] Allow child classes to overwrite DEFAULT_CHARSET By using 'static' instead of 'self' the constant may be overridden by child classes. --- lib/FormatAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FormatAbstract.php b/lib/FormatAbstract.php index 6bcc2f94..c359026b 100644 --- a/lib/FormatAbstract.php +++ b/lib/FormatAbstract.php @@ -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){