From ef78c653ab92cea58ca0526591b0649b80f8f38b Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 2 Jan 2021 14:18:27 +0000 Subject: [PATCH] easier subclassing of Charset class --- src/Helper/Charset.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.0