Fix sort #3150
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
lint.yml
on: push
Lint Code Base
1m 20s
Matrix: PHP Static Analysis
Annotations
10 errors and 2 warnings
|
PHP Static Analysis (8.3):
LibreNMS/Device/YamlDiscovery.php#L46
Parameter $class of method LibreNMS\Device\YamlDiscovery::discover() has invalid type LibreNMS\Device\DiscoveryItem.
|
|
PHP Static Analysis (8.3):
LibreNMS/Discovery/Yaml/LiteralField.php#L30
Return type mixed of method LibreNMS\Discovery\Yaml\LiteralField::calculateValue() is not covariant with return type void of method LibreNMS\Discovery\Yaml\YamlDiscoveryField::calculateValue().
|
|
PHP Static Analysis (8.3):
LibreNMS/Discovery/YamlDiscoveryDefinition.php#L78
Using nullsafe property access on non-nullable type LibreNMS\Discovery\Yaml\YamlDiscoveryField. Use -> instead.
|
|
PHP Static Analysis (8.3):
LibreNMS/Exceptions/UncorrectableNegativeException.php#L30
Parameter $previous of method LibreNMS\Exceptions\UncorrectableNegativeException::__construct() has invalid type LibreNMS\Exceptions\Throwable.
|
|
PHP Static Analysis (8.3):
LibreNMS/Exceptions/UncorrectableNegativeException.php#L32
Parameter #3 $previous of method Exception::__construct() expects Throwable|null, LibreNMS\Exceptions\Throwable|null given.
|
|
PHP Static Analysis (8.3):
LibreNMS/Modules/Storage.php#L61
Instanceof between LibreNMS\OS and LibreNMS\Interfaces\Discovery\StorageDiscovery will always evaluate to true.
|
|
PHP Static Analysis (8.3):
LibreNMS/OS/Traits/HostResources.php (in context of class LibreNMS/OS)#L166
Call to function is_array() with array will always evaluate to true.
|
|
PHP Static Analysis (8.3):
LibreNMS/OS/Traits/HostResources.php (in context of class LibreNMS/OS)#L172
Binary operation "*" between non-falsy-string and 1024 results in an error.
|
|
PHP Static Analysis (8.3):
LibreNMS/OS/Traits/YamlMempoolsDiscovery.php (in context of class LibreNMS/OS)#L44
Parameter #3 $default of class LibreNMS\Discovery\Yaml\YamlDiscoveryField constructor expects string|null, int given.
|
|
PHP Static Analysis (8.3):
LibreNMS/OS/Traits/YamlMempoolsDiscovery.php (in context of class LibreNMS/OS)#L52
Parameter #3 $default of class LibreNMS\Discovery\Yaml\YamlDiscoveryField constructor expects string|null, int given.
|
|
Lint Code Base
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
|
PHP Static Analysis (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|