HubsInfo Network
Social PHP Linux Web Hosting Online Games Free Web Directory

PHP Deprecated: Methods with the same name as their class

0 Members and 1 Guest are viewing this topic.

PHP Deprecated: Methods with the same name as their class
« on: May 15, 2020, 12:06:05 PM »
Code: [Select]
[15-May-2020 08:37:20 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; session has a deprecated constructor in /home/xxxxxx/.....yourfile.php on line 23

Official manual: https://www.php.net/manual/en/language.oop5.decon.php

Solution
Find and Replace like this:
Code: [Select]
class session {
  function session() {

Code: [Select]
class session {
  function __construct() {



--
Ref:
https://www.php.net/manual/en/language.oop5.decon.php






 


Linux Ubuntu Guides Linux games - Lutris.net