Skip to content

Commit

Permalink
Do not overwrite default character limit if none was given
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindsHat committed Jun 12, 2024
1 parent 235b413 commit 9db4791
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/Icingadb/Util/PluginOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ function __construct($foo) {
parent::__construct($foo);

$config = Config::module('icingadb');
$this->setCharacterLimit($config->get('settings', 'plugin_output_character_limit', 10000));

$charLimit = $config->get('settings', 'plugin_output_character_limit', $this->characterlimit);

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

Check failure on line 83 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest

Access to an undefined property Icinga\Module\Icingadb\Util\PluginOutput::$characterlimit.

if ($charLimit != $this->characterLimit) {
$this->setCharacterLimit($charLimit);

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.

Check failure on line 86 in library/Icingadb/Util/PluginOutput.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest

Parameter #1 $limit of method Icinga\Module\Icingadb\Util\PluginOutput::setCharacterLimit() expects int, mixed given.
}

}

Expand Down

0 comments on commit 9db4791

Please sign in to comment.