From 0af1f480bfc0c7c0fb575d0479174d05dcaeb9dd Mon Sep 17 00:00:00 2001
From: Luis Henrique Carneiro <luishenrique.carneiro@gmail.com>
Date: Sun, 17 Dec 2023 01:43:32 -0300
Subject: [PATCH] PHP8 fix

For PHP 8 the method with the same name of class is not consider as a constructor anymore.
---
 functions/classes/class.Radius.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions/classes/class.Radius.php b/functions/classes/class.Radius.php
index 09156ea7..71e17ed1 100644
--- a/functions/classes/class.Radius.php
+++ b/functions/classes/class.Radius.php
@@ -228,7 +228,7 @@ class Radius
      * @param integer accounting port
      * @return NULL
      *********************************************************************/
-    public function Radius($ip_radius_server = '127.0.0.1', $shared_secret = '', $radius_suffix = '', $udp_timeout = 5, $authentication_port = 1812, $accounting_port = 1813)
+    public function __construct($ip_radius_server = '127.0.0.1', $shared_secret = '', $radius_suffix = '', $udp_timeout = 5, $authentication_port = 1812, $accounting_port = 1813)
     {
         $this->_radius_packet_info[1] = 'Access-Request';
         $this->_radius_packet_info[2] = 'Access-Accept';
-- 
GitLab