Fix deprecated constructors

This small change should't prevent easy updates to libraries and fixes the lint check on php7
This commit is contained in:
Tony Murray
2016-08-26 00:35:09 -05:00
parent 63cdd8210d
commit 53b07d7a2a
9 changed files with 12 additions and 12 deletions

View File

@@ -227,7 +227,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';