Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add retrieval of customized base doc URL
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored Aug 30, 2025
commit b4027c557d4c711120468e7e4e4d6cc2c48dab80
3 changes: 2 additions & 1 deletion core/Command/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
protected string $defaultOutputFormat = self::OUTPUT_FORMAT_PLAIN;
private bool $php_pcntl_signal = false;
private bool $interrupted = false;
public string $defaultHelp = 'More extensive and thorough documentation may be found at https://docs.nextcloud.com' . PHP_EOL; // TODO: link to appropriately versioned/themed Admin Manual

protected function configure() {
// Some of our commands do not extend this class; and some of those that do do not call parent::configure()
$defaultHelp = 'More extensive and thorough documentation may be found at ' . \OCP\Server::get(\OCP\Defaults::class)->getDocBaseUrl() . PHP_EOL;
$this
->setHelp($this->defaultHelp)

Check failure on line 32 in core/Command/Base.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedThisPropertyFetch

core/Command/Base.php:32:14: UndefinedThisPropertyFetch: Instance property OC\Core\Command\Base::$defaultHelp is not defined (see https://psalm.dev/041)
->addOption(
'output',
null,
Expand Down
Loading