From: gggeek Date: Sat, 2 Jan 2021 14:18:27 +0000 (+0000) Subject: easier subclassing of Charset class X-Git-Tag: 4.5.1~12 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ef78c653ab92cea58ca0526591b0649b80f8f38b;p=plcapi.git easier subclassing of Charset class --- diff --git a/src/Helper/Charset.php b/src/Helper/Charset.php index 2ea370f9..3440fc6e 100644 --- a/src/Helper/Charset.php +++ b/src/Helper/Charset.php @@ -27,6 +27,7 @@ class Charset 'EUC-JP', 'EUC-', 'EUC-KR', 'EUC-CN',), ); + /** @var Charset $instance */ protected static $instance = null; /** @@ -38,7 +39,7 @@ class Charset public static function instance() { if (self::$instance === null) { - self::$instance = new self(); + self::$instance = new static(); } return self::$instance;