LibreNMS/phpstan-baseline.neon

327 lines
11 KiB
Plaintext

parameters:
ignoreErrors:
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 1
path: LibreNMS/Alert/Transport/Mail.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 \\$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: "#^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 \\#16 \\$entPhysicalIndex of class LibreNMS\\\\Device\\\\WirelessSensor constructor expects float\\|int\\|null, string given\\.$#"
count: 1
path: LibreNMS/OS/Ios.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: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 1
path: app/Console/Commands/AddUserCommand.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: "#^Called 'Model\\:\\:make\\(\\)' which performs unnecessary work, use 'new Model\\(\\)'\\.$#"
count: 1
path: app/Http/Controllers/PortGroupController.php
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 2
path: app/Http/Controllers/Select/RoleController.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' does not exist on null\\.$#"
count: 1
path: app/Http/Controllers/Widgets/ImageController.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: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 2
path: app/Http/Requests/StoreUserRequest.php
-
message: "#^Cannot access property \\$password on object\\|string\\.$#"
count: 1
path: app/Http/Requests/UpdateUserRequest.php
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 2
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: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:cache\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 1
path: app/Providers/AuthServiceProvider.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 \\#1 \\$abilities of method Silber\\\\Bouncer\\\\Conductors\\\\GivesAbilities\\:\\:to\\(\\) expects array\\|Illuminate\\\\Database\\\\Eloquent\\\\Model\\|int, string given\\.$#"
count: 1
path: database/factories/UserFactory.php
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 1
path: database/factories/UserFactory.php
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:refresh\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 2
path: database/migrations/2023_06_18_201914_migrate_level_to_roles.php
-
message: "#^Parameter \\#1 \\$abilities of method Silber\\\\Bouncer\\\\Conductors\\\\GivesAbilities\\:\\:to\\(\\) expects array\\|Illuminate\\\\Database\\\\Eloquent\\\\Model\\|int, string given\\.$#"
count: 1
path: database/seeders/RolesSeeder.php
-
message: "#^Static method Silber\\\\Bouncer\\\\BouncerFacade\\:\\:role\\(\\) invoked with 0 parameters, 1 required\\.$#"
count: 2
path: database/seeders/RolesSeeder.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