aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-01-12 15:19:28 +0100
committerJulius Härtl <jus@bitgrid.net>2023-01-16 09:47:31 +0100
commitcf1bd0eb70e81915ba018afc22d3a2374b179cbe (patch)
treeeb88c923d6d7c1f22aeb191d3e979ee67b04d8f1 /lib/private/Log.php
parent7daa20d3095cbf99abebfe23fb307fff9d1e5fbb (diff)
downloadnextcloud-server-cf1bd0eb70e81915ba018afc22d3a2374b179cbe.tar.gz
nextcloud-server-cf1bd0eb70e81915ba018afc22d3a2374b179cbe.zip
chore: Add typings to Log properties
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php22
1 files changed, 6 insertions, 16 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index e4be5134f11..2ee5bfc9c5a 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -59,21 +59,11 @@ use function strtr;
* 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
@@ -81,7 +71,7 @@ class Log implements ILogger, IDataLogger {
* @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();