From 675b1c43238d5ccaeedbd82073a9bbfe29b868b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacio=20S=C3=A1nchez?= Date: Tue, 8 Mar 2016 10:33:37 +0100 Subject: [PATCH] Update TextLanguageDetect.php Is not necessary for getLanguages to be static. In PHP 5.6 throw an error like "$this is not accessible in static context", and in the example, TextLanguageDetect is always instantiated. --- lib/TextLanguageDetect/TextLanguageDetect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TextLanguageDetect/TextLanguageDetect.php b/lib/TextLanguageDetect/TextLanguageDetect.php index 61dd64b..c62860f 100755 --- a/lib/TextLanguageDetect/TextLanguageDetect.php +++ b/lib/TextLanguageDetect/TextLanguageDetect.php @@ -422,7 +422,7 @@ public function languageExists($lang) * @return array the names of the languages known to this object<<<<<<< * @throws TextLanguageDetectException */ - public static function getLanguages() + public function getLanguages() { return $this->_convertToNameMode( array_keys($this->_lang_db)