mathiasverraes / jdump

J!Dump is a very easy to use debugging extension for Joomla developers and template designers. Download links below.
http://twitter.com/mathiasverraes
43 stars 25 forks source link

wrong classname - deprecated in PHP7 #31

Closed schnuti closed 7 years ago

schnuti commented 8 years ago

I got an errormessage after installing Joomla 3.5.0 on a testystem XAMPP with PHP7.=>

"Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP ... "

It looks as replacing the methodname with __construct fix it and I guess it's B/C =>

class plgSystemDump extends JPlugin
{
 /*
   function plgSystemDump(& $subject, $params) {
      parent::__construct($subject, $params);
   }
*/

function __construct(& $subject, $params) {
   parent::__construct($subject, $params);
}
cheesegrits commented 8 years ago

I submitted a PR on this

https://github.com/mathiasverraes/jdump/pull/33