Files
librenms-librenms/phpstan-baseline.neon
Tony Murray 13547225b4 Dependency Updates (#15149)
* symfony/finder (v6.2.7 => v6.3.0)
symfony/var-dumper (v6.2.10 => v6.3.1)
symfony/css-selector (v6.2.7 => v6.3.0)
symfony/uid (v6.2.7 => v6.3.0)
symfony/routing (v6.2.8 => v6.3.1)
symfony/process (v6.2.10 => v6.3.0)
symfony/mime (v6.2.10 => v6.3.0)
symfony/service-contracts (v3.2.1 => v3.3.0)
symfony/event-dispatcher-contracts (v3.2.1 => v3.3.0)
symfony/event-dispatcher (v6.2.8 => v6.3.0)
symfony/mailer (v6.2.8 => v6.3.0)
symfony/polyfill-php83 (v1.27.0)
symfony/deprecation-contracts (v3.2.1 => v3.3.0)
symfony/http-foundation (v6.2.10 => v6.3.1)
symfony/error-handler (v6.2.10 => v6.3.0)
symfony/http-kernel (v6.2.10 => v6.3.1)
symfony/string (v6.2.8 => v6.3.0)
symfony/console (v6.2.10 => v6.3.0)
symfony/translation-contracts (v3.2.1 => v3.3.0)
symfony/translation (v6.2.8 => v6.3.0)
nesbot/carbon (2.66.0 => 2.68.1)
monolog/monolog (3.3.1 => 3.4.0)
doctrine/inflector (2.0.6 => 2.0.8)
laravel/framework (v10.11.0 => v10.15.0)
phpstan/phpdoc-parser (1.21.0 => 1.22.1)
doctrine/deprecations (v1.0.0 => v1.1.1)
phpdocumentor/type-resolver (1.7.1 => 1.7.2)
nikic/php-parser (v4.15.5 => v4.16.0)
doctrine/dbal (3.6.2 => 3.6.4)
composer/class-map-generator (1.0.0 => 1.1.0)
barryvdh/reflection-docblock (v2.1.0 => v2.1.1)
symfony/filesystem (v6.2.10 => v6.3.1)
composer/ca-bundle (1.3.5 => 1.3.6)
composer/composer (2.5.5 => 2.5.8)
fakerphp/faker (v1.22.0 => v1.23.0)
symfony/stopwatch (v6.2.7 => v6.3.0)
symfony/options-resolver (v6.2.7 => v6.3.0)
friendsofphp/php-cs-fixer (v3.17.0 => v3.22.0)
laravel/dusk (v7.7.1 => v7.8.0)
psy/psysh (v0.11.18 => v0.11.19)
mockery/mockery (1.5.1 => 1.6.2)
filp/whoops (2.15.2 => 2.15.3)
phpstan/phpstan (1.10.15 => 1.10.25)
phpmyadmin/sql-parser (5.7.0 => 5.8.0)
nunomaduro/larastan (v2.6.0 => v2.6.3)
nunomaduro/laravel-console-summary (v1.9.1 => v1.10.0)
phpseclib/phpseclib (3.0.19 => 3.0.21)
php-amqplib/php-amqplib (v3.5.3 => v3.5.4)
php-flasher/flasher (v1.13.1 => v1.15.3)
php-flasher/flasher-laravel (v1.13.1 => v1.15.3)
phpunit/phpunit (9.6.8 => 9.6.10)
predis/predis (v2.1.2 => v2.2.0)
laravel/socialite (v5.6.1 => v5.8.0)
spatie/backtrace (1.4.0 => 1.5.3)
spatie/flare-client-php (1.3.6 => 1.4.1)
spatie/ignition (1.7.0 => 1.9.0)
spatie/laravel-ignition (2.1.2 => 2.2.0)
symfony/yaml (v6.2.10 => v6.3.0)

* Typehint update

* update baseline for fixed issues
2023-07-17 08:18:10 -05:00

317 lines
9.8 KiB
Plaintext

parameters:
ignoreErrors:
-
message: "#^If condition is always false\\.$#"
count: 1
path: LibreNMS/Authentication/MysqlAuthorizer.php
-
message: "#^Parameter \\#2 \\$password of method LibreNMS\\\\Authentication\\\\MysqlAuthorizer\\:\\:addUser\\(\\) expects string, null given\\.$#"
count: 1
path: LibreNMS/Authentication/SSOAuthorizer.php
-
message: "#^Property LibreNMS\\\\Data\\\\Store\\\\Rrd\\:\\:\\$async_process \\(LibreNMS\\\\Proc\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: LibreNMS/Data/Store/Rrd.php
-
message: "#^Property LibreNMS\\\\Data\\\\Store\\\\Rrd\\:\\:\\$sync_process \\(LibreNMS\\\\Proc\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: LibreNMS/Data/Store/Rrd.php
-
message: "#^Right side of && is always true\\.$#"
count: 1
path: LibreNMS/Data/Store/Rrd.php
-
message: "#^Parameter \\#1 \\$model of static method LibreNMS\\\\Model\\:\\:onCreate\\(\\) expects static\\(LibreNMS\\\\Device\\\\Processor\\), LibreNMS\\\\Device\\\\Processor given\\.$#"
count: 1
path: LibreNMS/Device/Processor.php
-
message: "#^Parameter \\#1 \\$model of static method LibreNMS\\\\Model\\:\\:onDelete\\(\\) expects static\\(LibreNMS\\\\Device\\\\Processor\\), LibreNMS\\\\Device\\\\Processor given\\.$#"
count: 1
path: LibreNMS/Device/Processor.php
-
message: "#^Unsafe call to private method LibreNMS\\\\Device\\\\Processor\\:\\:pollProcessors\\(\\) through static\\:\\:\\.$#"
count: 1
path: LibreNMS/Device/Processor.php
-
message: "#^Unsafe call to private method LibreNMS\\\\Device\\\\Processor\\:\\:processData\\(\\) through static\\:\\:\\.$#"
count: 3
path: LibreNMS/Device/Processor.php
-
message: "#^Variable \\$lsps might not be defined\\.$#"
count: 1
path: LibreNMS/Modules/Mpls.php
-
message: "#^Variable \\$paths might not be defined\\.$#"
count: 2
path: LibreNMS/Modules/Mpls.php
-
message: "#^Variable \\$sdps might not be defined\\.$#"
count: 1
path: LibreNMS/Modules/Mpls.php
-
message: "#^Variable \\$svcs might not be defined\\.$#"
count: 2
path: LibreNMS/Modules/Mpls.php
-
message: "#^Variable \\$features on left side of \\?\\? is never defined\\.$#"
count: 1
path: LibreNMS/Modules/Os.php
-
message: "#^Variable \\$hardware on left side of \\?\\? is never defined\\.$#"
count: 1
path: LibreNMS/Modules/Os.php
-
message: "#^Variable \\$location in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
path: LibreNMS/Modules/Os.php
-
message: "#^Variable \\$serial on left side of \\?\\? is never defined\\.$#"
count: 1
path: LibreNMS/Modules/Os.php
-
message: "#^Variable \\$version on left side of \\?\\? is never defined\\.$#"
count: 1
path: LibreNMS/Modules/Os.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: LibreNMS/Modules/Ospf.php
-
message: "#^Parameter \\#8 \\$multiplier of class LibreNMS\\\\Device\\\\WirelessSensor constructor expects int, null given\\.$#"
count: 2
path: LibreNMS/OS/ArrisDsr4410md.php
-
message: "#^Variable \\$sensors in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: LibreNMS/OS/ArubaInstant.php
-
message: "#^Variable \\$multi_get_array on left side of \\?\\? is never defined\\.$#"
count: 2
path: LibreNMS/OS/Ceraos.php
-
message: "#^Parameter \\#8 \\$multiplier of class LibreNMS\\\\Device\\\\WirelessSensor constructor expects int, null given\\.$#"
count: 3
path: LibreNMS/OS/HarmonyEnhanced.php
-
message: "#^Parameter \\#16 \\$entPhysicalIndex of class LibreNMS\\\\Device\\\\WirelessSensor constructor expects float\\|int\\|null, string given\\.$#"
count: 1
path: LibreNMS/OS/Ios.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: LibreNMS/OS/Shared/Cisco.php
-
message: "#^Variable \\$index might not be defined\\.$#"
count: 2
path: LibreNMS/OS/SmOs.php
-
message: "#^Offset 'sonicCurrentConnCac…' does not exist on string\\.$#"
count: 1
path: LibreNMS/OS/Sonicwall.php
-
message: "#^Offset 'sonicMaxConnCacheEn…' does not exist on string\\.$#"
count: 1
path: LibreNMS/OS/Sonicwall.php
-
message: "#^Variable \\$mplsTunnelARHopIndex in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
path: LibreNMS/OS/Timos.php
-
message: "#^Variable \\$mplsTunnelARHopListIndex in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
path: LibreNMS/OS/Timos.php
-
message: "#^Variable \\$sdp_oid in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
path: LibreNMS/OS/Timos.php
-
message: "#^Variable \\$svc_oid in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
path: LibreNMS/OS/Timos.php
-
message: "#^Property LibreNMS\\\\Proc\\:\\:\\$_pipes is never written, only read\\.$#"
count: 1
path: LibreNMS/Proc.php
-
message: "#^If condition is always false\\.$#"
count: 2
path: LibreNMS/Util/CiHelper.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: LibreNMS/Util/Graph.php
-
message: "#^Variable \\$rrd_options in empty\\(\\) always exists and is always falsy\\.$#"
count: 1
path: LibreNMS/Util/Graph.php
-
message: "#^Property LibreNMS\\\\Util\\\\Snmpsim\\:\\:\\$proc \\(LibreNMS\\\\Proc\\) in isset\\(\\) is not nullable\\.$#"
count: 2
path: LibreNMS/Util/Snmpsim.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: LibreNMS/Util/Snmpsim.php
-
message: "#^Property App\\\\Console\\\\Commands\\\\InternalHttpRequest\\:\\:\\$app is never read, only written\\.$#"
count: 1
path: app/Console/Commands/InternalHttpRequest.php
-
message: "#^Called 'Model\\:\\:make\\(\\)' which performs unnecessary work, use 'new Model\\(\\)'\\.$#"
count: 1
path: app/Http/Controllers/DeviceGroupController.php
-
message: "#^Ternary operator condition is always false\\.$#"
count: 1
path: app/Http/Controllers/LegacyController.php
-
message: "#^Variable \\$vars on left side of \\?\\? is never defined\\.$#"
count: 1
path: app/Http/Controllers/LegacyController.php
-
message: "#^Called 'Model\\:\\:make\\(\\)' which performs unnecessary work, use 'new Model\\(\\)'\\.$#"
count: 1
path: app/Http/Controllers/PortGroupController.php
-
message: "#^Call to an undefined static method App\\\\Models\\\\ServiceTemplate\\:\\:hasAccess\\(\\)\\.$#"
count: 1
path: app/Http/Controllers/Select/ServiceTemplateController.php
-
message: "#^Called 'Model\\:\\:make\\(\\)' which performs unnecessary work, use 'new Model\\(\\)'\\.$#"
count: 1
path: app/Http/Controllers/ServiceController.php
-
message: "#^Cannot call method only\\(\\) on array\\<string, string\\>\\.$#"
count: 1
path: app/Http/Controllers/ServiceController.php
-
message: "#^Called 'Model\\:\\:make\\(\\)' which performs unnecessary work, use 'new Model\\(\\)'\\.$#"
count: 1
path: app/Http/Controllers/ServiceTemplateController.php
-
message: "#^Offset 'image_title' on null in empty\\(\\) does not exist\\.$#"
count: 1
path: app/Http/Controllers/Widgets/ImageController.php
-
message: "#^PHPDoc type array of property App\\\\Http\\\\Kernel\\:\\:\\$middlewarePriority is not covariant with PHPDoc type array\\<string\\> of overridden property Illuminate\\\\Foundation\\\\Http\\\\Kernel\\:\\:\\$middlewarePriority\\.$#"
count: 1
path: app/Http/Kernel.php
-
message: "#^Cannot access property \\$password on object\\|string\\.$#"
count: 1
path: app/Http/Requests/UpdateUserRequest.php
-
message: "#^Access to an undefined property App\\\\Models\\\\DeviceRelatedModel\\:\\:\\$device_id\\.$#"
count: 1
path: app/Models/DeviceRelatedModel.php
-
message: "#^PHPDoc type array of property App\\\\Models\\\\UserPref\\:\\:\\$primaryKey is not covariant with PHPDoc type string of overridden property Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:\\$primaryKey\\.$#"
count: 1
path: app/Models/UserPref.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: app/Providers/CliServiceProvider.php
-
message: "#^Right side of && is always false\\.$#"
count: 1
path: app/Providers/CliServiceProvider.php
-
message: "#^Variable \\$username on left side of \\?\\? is never defined\\.$#"
count: 1
path: app/Providers/LegacyUserProvider.php
-
message: "#^Property App\\\\View\\\\SimpleTemplate\\:\\:\\$callback \\(callable\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: app/View/SimpleTemplate.php
-
message: "#^Parameter \\#4 \\$transport of function addHost expects string, int given\\.$#"
count: 1
path: tests/AddHostTest.php
-
message: "#^Parameter \\#5 \\$poller_group of function addHost expects string, int given\\.$#"
count: 4
path: tests/AddHostTest.php
-
message: "#^Parameter \\#1 \\$attr of method LibreNMS\\\\Authentication\\\\SSOAuthorizer\\:\\:authSSOGetAttr\\(\\) expects string, int given\\.$#"
count: 2
path: tests/AuthSSOTest.php
-
message: "#^Parameter \\#1 \\$attr of method LibreNMS\\\\Authentication\\\\SSOAuthorizer\\:\\:authSSOGetAttr\\(\\) expects string, null given\\.$#"
count: 2
path: tests/AuthSSOTest.php
-
message: "#^Parameter \\#2 \\$default of function set_null expects null, int given\\.$#"
count: 2
path: tests/CommonFunctionsTest.php
-
message: "#^Parameter \\#1 \\$os of static method LibreNMS\\\\Config\\:\\:getOsSetting\\(\\) expects string, null given\\.$#"
count: 1
path: tests/ConfigTest.php
-
message: "#^Parameter \\#1 \\$new_location of method App\\\\Models\\\\Device\\:\\:setLocation\\(\\) expects App\\\\Models\\\\Location\\|string, null given\\.$#"
count: 1
path: tests/Unit/LocationTest.php