mirror of
https://github.com/snipe/snipe-it.git
synced 2026-08-18 03:06:23 +00:00
Run new baseline for PHPStan
This commit is contained in:
@ -444,18 +444,6 @@ parameters:
|
||||
count: 2
|
||||
path: app/Console/Commands/ObjectImportCommand.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\CheckoutAcceptance\:\:\$checkoutable_category_name\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/PurgeEulaPDFs.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\CheckoutAcceptance\:\:\$display_checkoutable_type\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/PurgeEulaPDFs.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$display_name\.$#'
|
||||
identifier: property.notFound
|
||||
@ -498,30 +486,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Console/Commands/RegenerateAssetTags.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$header_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/ResetDemoSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/ResetDemoSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/ResetDemoSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/ResetDemoSettings.php
|
||||
|
||||
-
|
||||
message: '#^Property App\\Models\\User\:\:\$enable_confetti \(bool\) does not accept int\.$#'
|
||||
identifier: assign.propertyType
|
||||
@ -582,84 +546,18 @@ parameters:
|
||||
count: 2
|
||||
path: app/Console/Commands/RotateAppKey.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$expected_checkin_diff_for_humans\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpectedCheckinAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$expected_checkin_formattedDate\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpectedCheckinAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$purchase_date_formatted\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpectedCheckinAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Left side of && is always true\.$#'
|
||||
identifier: booleanAnd.leftAlwaysTrue
|
||||
count: 2
|
||||
path: app/Console/Commands/SendExpectedCheckinAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$expires_diff_for_humans\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpirationAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$expires_formatted_date\.$#'
|
||||
identifier: property.notFound
|
||||
count: 2
|
||||
path: app/Console/Commands/SendExpirationAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$purchase_date_formatted\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpirationAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$terminates_diff_for_humans\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpirationAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$terminates_formatted_date\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendExpirationAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Comparison operation "\>" between int\<1, max\> and 0 is always true\.$#'
|
||||
identifier: greater.alwaysTrue
|
||||
count: 1
|
||||
path: app/Console/Commands/SendInventoryAlerts.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_audit_formatted_date\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendUpcomingAuditReport.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$next_audit_diff_in_days\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendUpcomingAuditReport.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$next_audit_formatted_date\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Console/Commands/SendUpcomingAuditReport.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property ArrayObject\:\:\$id\.$#'
|
||||
identifier: property.notFound
|
||||
@ -3504,24 +3402,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Controllers/NotesController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/ProfileController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/ProfileController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/ProfileController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$id\.$#'
|
||||
identifier: property.notFound
|
||||
@ -3552,12 +3432,6 @@ parameters:
|
||||
count: 2
|
||||
path: app/Http/Controllers/ReportsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_checkout\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/ReportsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\License\:\:\$depreciation\.$#'
|
||||
identifier: property.notFound
|
||||
@ -3702,30 +3576,6 @@ parameters:
|
||||
count: 2
|
||||
path: app/Http/Controllers/SettingsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$header_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SettingsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SettingsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SettingsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SettingsController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\SnipeModel\:\:\$default_avatar\.$#'
|
||||
identifier: property.notFound
|
||||
@ -3792,24 +3642,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Controllers/SetupController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SetupController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SetupController.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Controllers/SetupController.php
|
||||
|
||||
-
|
||||
message: '#^Method App\\Http\\Controllers\\SetupController\:\:getSetupIndex\(\) should return Illuminate\\Contracts\\View\\View but returns Illuminate\\Http\\Response\.$#'
|
||||
identifier: return.type
|
||||
@ -4098,42 +3930,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Kernel.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckColorSettings.php
|
||||
|
||||
-
|
||||
message: '#^Binary operation "\." between non\-falsy\-string and array\<string\> results in an error\.$#'
|
||||
identifier: binaryOp.invalid
|
||||
@ -4248,18 +4044,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Transformers/AssetsTransformer.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_checkout\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Transformers/AssetsTransformer.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$warranty_expires\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Transformers/AssetsTransformer.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$alt_barcode\.$#'
|
||||
identifier: property.notFound
|
||||
@ -4392,12 +4176,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Transformers/DepreciationReportTransformer.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$warranty_expires\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Http/Transformers/DepreciationReportTransformer.php
|
||||
|
||||
-
|
||||
message: '#^Cannot access property \$display_name on string\.$#'
|
||||
identifier: property.nonObject
|
||||
@ -5724,12 +5502,6 @@ parameters:
|
||||
count: 3
|
||||
path: app/Mail/CheckoutAssetMail.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_checkout\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Mail/CheckoutAssetMail.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @param references unknown parameter\: \$notifiable$#'
|
||||
identifier: parameter.notFound
|
||||
@ -6252,18 +6024,6 @@ parameters:
|
||||
count: 2
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$eolDate\.$#'
|
||||
identifier: property.notFound
|
||||
count: 3
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_checkout\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$license\.$#'
|
||||
identifier: property.notFound
|
||||
@ -6276,18 +6036,6 @@ parameters:
|
||||
count: 5
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$warrantyExpires\.$#'
|
||||
identifier: property.notFound
|
||||
count: 4
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$warranty_expires\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$company_id\.$#'
|
||||
identifier: property.notFound
|
||||
@ -6420,24 +6168,12 @@ parameters:
|
||||
count: 1
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @return with type Carbon\\Carbon\|null is incompatible with native type Illuminate\\Database\\Eloquent\\Casts\\Attribute\.$#'
|
||||
identifier: return.phpDocType
|
||||
count: 1
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @return with type Illuminate\\Database\\Query\\Builder is incompatible with native type Illuminate\\Database\\Eloquent\\Builder\.$#'
|
||||
identifier: return.phpDocType
|
||||
count: 1
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @return with type void is incompatible with native type Illuminate\\Database\\Eloquent\\Casts\\Attribute\.$#'
|
||||
identifier: return.phpDocType
|
||||
count: 2
|
||||
path: app/Models/Asset.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @var above a method has no effect\.$#'
|
||||
identifier: varTag.misplaced
|
||||
@ -7830,12 +7566,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Models/Labels/FieldOption.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$warranty_expires\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/Labels/FieldOption.php
|
||||
|
||||
-
|
||||
message: '#^Dead catch \- Exception is never thrown in the try block\.$#'
|
||||
identifier: catch.neverThrown
|
||||
@ -8694,12 +8424,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Models/Setting.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @return with type string is incompatible with native type Illuminate\\Database\\Eloquent\\Casts\\Attribute\.$#'
|
||||
identifier: return.phpDocType
|
||||
count: 1
|
||||
path: app/Models/Setting.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @var above a method has no effect\.$#'
|
||||
identifier: varTag.misplaced
|
||||
@ -8934,24 +8658,6 @@ parameters:
|
||||
count: 5
|
||||
path: app/Models/User.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_dark_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/User.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$link_light_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/User.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$nav_link_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Models/User.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$accessory_cost\.$#'
|
||||
identifier: property.notFound
|
||||
@ -9750,12 +9456,6 @@ parameters:
|
||||
count: 2
|
||||
path: app/Notifications/CheckoutAccessoryNotification.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Asset\:\:\$last_checkout\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: app/Notifications/CheckoutAssetNotification.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Notifications\\CheckoutAssetNotification\:\:\$admin\.$#'
|
||||
identifier: property.notFound
|
||||
@ -11904,18 +11604,6 @@ parameters:
|
||||
count: 1
|
||||
path: database/migrations/2024_09_17_204302_change_user_id_to_created_by.php
|
||||
|
||||
-
|
||||
message: '#^Left side of \|\| is always true\.$#'
|
||||
identifier: booleanOr.leftAlwaysTrue
|
||||
count: 6
|
||||
path: database/migrations/2025_11_28_175733_add_link_colors_to_settings.php
|
||||
|
||||
-
|
||||
message: '#^Right side of \|\| is always true\.$#'
|
||||
identifier: booleanOr.rightAlwaysTrue
|
||||
count: 6
|
||||
path: database/migrations/2025_11_28_175733_add_link_colors_to_settings.php
|
||||
|
||||
-
|
||||
message: '#^Called ''pluck'' on Laravel collection, but could have been retrieved as a query\.$#'
|
||||
identifier: larastan.noUnnecessaryCollectionCall
|
||||
@ -12018,12 +11706,6 @@ parameters:
|
||||
count: 1
|
||||
path: database/seeders/LicenseSeeder.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\Setting\:\:\$header_color\.$#'
|
||||
identifier: property.notFound
|
||||
count: 1
|
||||
path: database/seeders/SettingsSeeder.php
|
||||
|
||||
-
|
||||
message: '#^Access to an undefined property App\\Models\\User\:\:\$enable_sound\.$#'
|
||||
identifier: property.notFound
|
||||
|
||||
Reference in New Issue
Block a user