Fixing issue with abstract static function strict error