Skip to content

Commit

Permalink
chore: Add typings to Log properties
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jan 12, 2023
1 parent c9ff19f commit ecf0793
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions lib/private/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,19 @@
* MonoLog is an example implementing this interface.
*/
class Log implements ILogger, IDataLogger {

/** @var IWriter */
private $logger;

/** @var SystemConfig */
private $config;

/** @var boolean|null cache the result of the log condition check for the request */
private $logConditionSatisfied = null;

/** @var Normalizer */
private $normalizer;

/** @var IRegistry */
private $crashReporters;
private IWriter $logger;
private ?SystemConfig $config;
private ?bool $logConditionSatisfied = null;
private ?Normalizer $normalizer;
private ?IRegistry $crashReporters;

/**
* @param IWriter $logger The logger that should be used
* @param SystemConfig $config the system config object
* @param Normalizer|null $normalizer
* @param IRegistry|null $registry
*/
public function __construct(IWriter $logger, SystemConfig $config = null, $normalizer = null, IRegistry $registry = null) {
public function __construct(IWriter $logger, SystemConfig $config = null, Normalizer $normalizer = null, IRegistry $registry = null) {
// FIXME: Add this for backwards compatibility, should be fixed at some point probably
if ($config === null) {
$config = \OC::$server->getSystemConfig();
Expand Down

0 comments on commit ecf0793

Please sign in to comment.