Change DEBUG to a static const

This commit is contained in:
2023-07-19 10:27:47 +10:00
parent ee03604de3
commit dcae06aad9
5 changed files with 48 additions and 48 deletions

View File

@@ -362,7 +362,7 @@ final class Binkp extends BaseProtocol
} catch (SocketException $e) {
if ($e->getCode() === 11) {
// @todo We maybe should count these and abort if there are too many?
if ($this->DEBUG)
if (static::DEBUG)
Log::debug(sprintf('%s:- Got a socket EAGAIN',self::LOGKEY));
return TRUE;
@@ -424,7 +424,7 @@ final class Binkp extends BaseProtocol
return TRUE;
}
if ($this->DEBUG)
if (static::DEBUG)
Log::debug(sprintf('%s: - binkp_recv BUFFER [%d]',self::LOGKEY,strlen($this->rx_buf)));
$msg = ord(substr($this->rx_buf,0,1));
@@ -534,7 +534,7 @@ final class Binkp extends BaseProtocol
$rc = TRUE;
}
if ($this->DEBUG)
if (static::DEBUG)
Log::debug(sprintf('%s:= binkp_recv [%d]',self::LOGKEY,$rc));
return $rc;