git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d88d97f
)
easier subclassing of Charset class
author
gggeek
<giunta.gaetano@gmail.com>
Sat, 2 Jan 2021 14:18:27 +0000
(14:18 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Sat, 2 Jan 2021 14:18:27 +0000
(14:18 +0000)
src/Helper/Charset.php
patch
|
blob
|
history
diff --git
a/src/Helper/Charset.php
b/src/Helper/Charset.php
index
2ea370f
..
3440fc6
100644
(file)
--- a/
src/Helper/Charset.php
+++ b/
src/Helper/Charset.php
@@
-27,6
+27,7
@@
class Charset
'EUC-JP', 'EUC-', 'EUC-KR', 'EUC-CN',),
);
'EUC-JP', 'EUC-', 'EUC-KR', 'EUC-CN',),
);
+ /** @var Charset $instance */
protected static $instance = null;
/**
protected static $instance = null;
/**
@@
-38,7
+39,7
@@
class Charset
public static function instance()
{
if (self::$instance === null) {
public static function instance()
{
if (self::$instance === null) {
- self::$instance = new s
elf
();
+ self::$instance = new s
tatic
();
}
return self::$instance;
}
return self::$instance;