&$this should be $this for callables

This commit is contained in:
djmaze 2021-10-25 09:51:39 +02:00
parent 57dd0f7e2c
commit 54f6f34e0d
3 changed files with 6 additions and 6 deletions

View file

@ -31,10 +31,10 @@ class Logger extends \MailSo\Base\Collection
if ($bRegPhpErrorHandler) if ($bRegPhpErrorHandler)
{ {
\set_error_handler(array(&$this, '__phpErrorHandler')); \set_error_handler(array($this, '__phpErrorHandler'));
} }
\register_shutdown_function(array(&$this, '__loggerShutDown')); \register_shutdown_function(array($this, '__loggerShutDown'));
} }
/** /**

View file

@ -187,7 +187,7 @@ abstract class NetClient
$rStreamContext = \stream_context_create($aStreamContextSettings); $rStreamContext = \stream_context_create($aStreamContextSettings);
\set_error_handler(array(&$this, 'capturePhpErrorWithException')); \set_error_handler(array($this, 'capturePhpErrorWithException'));
try try
{ {

View file

@ -166,7 +166,7 @@ abstract class AbstractPlugin
{ {
if ($this->oPluginManager) if ($this->oPluginManager)
{ {
$this->oPluginManager->AddHook($sHookName, array(&$this, $sFunctionName)); $this->oPluginManager->AddHook($sHookName, array($this, $sFunctionName));
} }
return $this; return $this;
@ -216,7 +216,7 @@ abstract class AbstractPlugin
{ {
if ($this->oPluginManager) if ($this->oPluginManager)
{ {
$this->oPluginManager->AddAdditionalPartAction($sActionName, array(&$this, $sFunctionName)); $this->oPluginManager->AddAdditionalPartAction($sActionName, array($this, $sFunctionName));
} }
return $this; return $this;
@ -226,7 +226,7 @@ abstract class AbstractPlugin
{ {
if ($this->oPluginManager) if ($this->oPluginManager)
{ {
$this->oPluginManager->AddAdditionalJsonAction($sActionName, array(&$this, $sFunctionName)); $this->oPluginManager->AddAdditionalJsonAction($sActionName, array($this, $sFunctionName));
} }
return $this; return $this;