Skip to content

PluginOutput::render(): Return correctly cut off output #43

PluginOutput::render(): Return correctly cut off output

PluginOutput::render(): Return correctly cut off output #43

Triggered via pull request July 23, 2024 13:47
Status Success
Total duration 2m 22s
Artifacts

phpstan.yml

on: pull_request
Matrix: phpstan / phpstan
Fit to window
Zoom out
Zoom in

Annotations

47 errors
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Method Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:render\(\) should return string but returns string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Property Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:\$renderedOutput \(string\) does not accept string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L200
Property Icinga\Module\Icingadb\Util\PluginOutput::$renderedOutput (string) does not accept string|null.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L202
Method Icinga\Module\Icingadb\Util\PluginOutput::render() should return string but returns string|null.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Method Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:render\(\) should return string but returns string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Property Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:\$renderedOutput \(string\) does not accept string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L200
Property Icinga\Module\Icingadb\Util\PluginOutput::$renderedOutput (string) does not accept string|null.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L202
Method Icinga\Module\Icingadb\Util\PluginOutput::render() should return string but returns string|null.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Method Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:render\(\) should return string but returns string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L1
Ignored error pattern #^Property Icinga\\Module\\Icingadb\\Util\\PluginOutput\:\:\$renderedOutput \(string\) does not accept string\|false\|null\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Util/PluginOutput.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L200
Property Icinga\Module\Icingadb\Util\PluginOutput::$renderedOutput (string) does not accept string|null.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L202
Method Icinga\Module\Icingadb\Util\PluginOutput::render() should return string but returns string|null.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest
Process completed with exit code 1.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icingadb/Util/PluginOutput.php#L183
Parameter #3 $subject of function preg_replace expects array|string, string|null given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L166
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:qualifyPath\(\) expects string, mixed given\.$# in path /home/runner/work/icingadb-web/icingadb-web/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php is expected to occur 1 time, but occurred 2 times.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php#L291
Parameter #1 $path of method ipl\Orm\Resolver::qualifyPath() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest
Process completed with exit code 1.