Forums Synexo Labs
Fix : Non-static method Session::getSessionInstance - Version imprimable

+- Forums Synexo Labs (https://forums.synexolabs.com)
+-- Forum : Proaxive Lite 1.5.x Full / Net-Install (beta.09/10/11) (https://forums.synexolabs.com/forumdisplay.php?fid=3)
+--- Forum : Version beta.06 (obsolète) (https://forums.synexolabs.com/forumdisplay.php?fid=8)
+--- Sujet : Fix : Non-static method Session::getSessionInstance (/showthread.php?tid=9)



Fix : Non-static method Session::getSessionInstance - SelMaK - 27-03-2021

Le temps que la beta.07 sorte, veuillez trouver ci-dessous la correction du bug lié à la class Session.

Erreur rencontrée :

Code :
Non-static method src\MyClass\Session::getSessionInstance() should not be called statically


Ouvrez le fichier src/MyClass/Session.php

Recherchez :

Code PHP :
public function getSessionInstance() 

Remplacez par :

Code PHP :
public static function getSessionInstance()