HubsInfo Network
Login or Register to remove ads! You're browsing our forum and website as a Guest meaning you can only see a portion of the forum in read-only mode.
PHP MySQL Linux Material Design Web Hosting Online Games SimCity BuildIt

PHP Deprecated: Methods with the same name as their class


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