$this is a syntax error when using static classes (#5264)

This commit is contained in:
Luis Daniel Lucio Quiroz
2020-06-06 11:11:35 -04:00
committed by GitHub
parent cc3f919ffb
commit b65c8cd68b

View File

@@ -19,7 +19,7 @@ if (!class_exists('software')) {
* numeric_version
*/
public static function numeric_version() {
$v = explode('.', $this->version());
$v = explode('.', software::version());
$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
return $n;
}