We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b31461 commit 53f9c7aCopy full SHA for 53f9c7a
Text/LanguageDetect/Parser.php
@@ -102,10 +102,20 @@ class Text_LanguageDetect_Parser extends Text_LanguageDetect
102
* @access private
103
* @param string $string string to be parsed
104
*/
105
- function Text_LanguageDetect_Parser($string) {
+ function __construct($string) {
106
$this->_string = $string;
107
}
108
109
+ /**
110
+ * PHP 4 constructor for backwards compatibility.
111
+ *
112
+ * @access private
113
+ * @param string $string string to be parsed
114
+ */
115
+ function Text_LanguageDetect_Parser($string) {
116
+ self::__construct($string);
117
+ }
118
+
119
/**
120
* Returns true if a string is suitable for parsing
121
*
0 commit comments