mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16748] Enable code sniffing for static placement and adjust code
PHPBB3-16748
This commit is contained in:
@@ -24,7 +24,7 @@ use Symfony\Component\Debug\ExceptionHandler;
|
||||
*/
|
||||
class debug
|
||||
{
|
||||
static private $enabled = false;
|
||||
private static $enabled = false;
|
||||
|
||||
/**
|
||||
* Enables the debug tools.
|
||||
@@ -37,7 +37,7 @@ class debug
|
||||
* @param int $errorReportingLevel The level of error reporting you want
|
||||
* @param bool $displayErrors Whether to display errors (for development) or just log them (for production)
|
||||
*/
|
||||
static public function enable($errorReportingLevel = null, $displayErrors = true)
|
||||
public static function enable($errorReportingLevel = null, $displayErrors = true)
|
||||
{
|
||||
if (static::$enabled)
|
||||
{
|
||||
|
Reference in New Issue
Block a user