Skip to content

Commit a7a8738

Browse files
Merge pull request #54559 from nextcloud/feat/noid/store-description
2 parents 8a8e1c8 + fc8d188 commit a7a8738

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/public/Config/Lexicon/Entry.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ class Entry {
2222
/** @since 32.0.0 */
2323
public const RENAME_INVERT_BOOLEAN = 1;
2424

25-
private string $definition = '';
26-
private string $note = '';
2725
private ?string $default = null;
2826

2927
/**
@@ -46,24 +44,18 @@ public function __construct(
4644
private readonly string $key,
4745
private readonly ValueType $type,
4846
private null|string|int|float|bool|array|Closure $defaultRaw = null,
49-
string $definition = '',
47+
private readonly string $definition = '',
5048
private readonly bool $lazy = false,
5149
private readonly int $flags = 0,
5250
private readonly bool $deprecated = false,
5351
private readonly ?string $rename = null,
5452
private readonly int $options = 0,
55-
string $note = '',
53+
private readonly string $note = '',
5654
) {
5755
// key can only contain alphanumeric chars and underscore "_"
5856
if (preg_match('/[^[:alnum:]_]/', $key)) {
5957
throw new \Exception('invalid config key');
6058
}
61-
62-
/** @psalm-suppress UndefinedClass */
63-
if (\OC::$CLI) { // only store definition if ran from CLI
64-
$this->definition = $definition;
65-
$this->note = $note;
66-
}
6759
}
6860

6961
/**

0 commit comments

Comments
 (0)