Skip to content

A free open source IT asset/license management system

Updated baseline

snipe851611fde480
diff --git a/database/migrations/2026_07_01_000001_clear_unsafe_webhook_endpoints.php b/database/migrations/2026_07_01_000001_clear_unsafe_webhook_endpoints.php
index c7ba03c632..0204708238 100644
--- a/database/migrations/2026_07_01_000001_clear_unsafe_webhook_endpoints.php
+++ b/database/migrations/2026_07_01_000001_clear_unsafe_webhook_endpoints.php
@@ -28,7 +28,7 @@ return new class extends Migration
foreach ($rows as $row) {
$fails = Validator::make(
['webhook_endpoint' => $row->webhook_endpoint],
- ['webhook_endpoint' => [new ExternalUrl]],
+ ['webhook_endpoint' => [new ExternalUrl('app.webhook_allow_internal_targets')]],
)->fails();
if (! $fails) {
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 83cd8c83b5..d64d356b27 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -198,24 +198,6 @@ parameters:
count: 6
path: app/Console/Commands/BulkDelete.php
- -
- message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$avatar\.$#'
- identifier: property.notFound
- count: 1
- path: app/Console/Commands/CheckOrphanUploads.php
-
- -
- message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$id\.$#'
- identifier: property.notFound
- count: 1
- path: app/Console/Commands/CheckOrphanUploads.php
-
- -
- message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$image\.$#'
- identifier: property.notFound
- count: 1
- path: app/Console/Commands/CheckOrphanUploads.php
-
-
message: '#^Using nullsafe property access "\?\-\>asset_tag" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
@@ -900,12 +882,6 @@ parameters:
count: 1
path: app/Http/Controllers/Accessories/AccessoryCheckoutController.php
- -
- message: '#^Static method Illuminate\\Contracts\\Filesystem\\Filesystem\:\:makeDirectory\(\) invoked with 2 parameters, 1 required\.$#'
- identifier: arguments.count
- count: 2
- path: app/Http/Controllers/Account/AcceptanceController.php
-
-
message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
@@ -1848,12 +1824,6 @@ parameters:
count: 1
path: app/Http/Controllers/Api/UploadedFilesController.php
- -
- message: '#^Static method Illuminate\\Contracts\\Filesystem\\Filesystem\:\:makeDirectory\(\) invoked with 2 parameters, 1 required\.$#'
- identifier: arguments.count
- count: 1
- path: app/Http/Controllers/Api/UploadedFilesController.php
-
-
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Builder\:\:withoutTrashed\(\)\.$#'
identifier: method.notFound
@@ -2094,12 +2064,6 @@ parameters:
count: 1
path: app/Http/Controllers/Assets/AssetsController.php
- -
- message: '#^Method App\\Http\\Controllers\\Assets\\AssetsController\:\:getBarCode\(\) should return Illuminate\\Http\\Response but returns Symfony\\Component\\HttpFoundation\\StreamedResponse\.$#'
- identifier: return.type
- count: 1
- path: app/Http/Controllers/Assets/AssetsController.php
-
-
message: '#^Method App\\Http\\Controllers\\Assets\\AssetsController\:\:getBarCode\(\) should return Illuminate\\Http\\Response but returns null\.$#'
identifier: return.type
@@ -2958,12 +2922,6 @@ parameters:
count: 1
path: app/Http/Controllers/MaintenancesController.php
- -
- message: '#^Static method Illuminate\\Contracts\\Filesystem\\Filesystem\:\:makeDirectory\(\) invoked with 2 parameters, 1 required\.$#'
- identifier: arguments.count
- count: 1
- path: app/Http/Controllers/MaintenancesController.php
-
-
message: '#^Access to an undefined property App\\Models\\Actionlog\:\:\$created_by\.$#'
identifier: property.notFound
@@ -3186,12 +3144,6 @@ parameters:
count: 1
path: app/Http/Controllers/SettingsController.php
- -
- message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$id\.$#'
- identifier: property.notFound
- count: 1
- path: app/Http/Controllers/SettingsController.php
-
-
message: '#^Loose comparison using \=\= between false and ''1'' will always evaluate to false\.$#'
identifier: equal.alwaysFalse
@@ -3366,6 +3318,12 @@ parameters:
count: 2
path: app/Http/Controllers/SuppliersController.php
+ -
+ message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$id\.$#'
+ identifier: property.notFound
+ count: 1
+ path: app/Http/Controllers/SyncAdapterController.php
+
-
message: '#^Access to an undefined property App\\Models\\Import\:\:\$created_by\.$#'
identifier: property.notFound
@@ -3384,12 +3342,6 @@ parameters:
count: 2
path: app/Http/Controllers/UploadedFilesController.php
- -
- message: '#^Static method Illuminate\\Contracts\\Filesystem\\Filesystem\:\:makeDirectory\(\) invoked with 2 parameters, 1 required\.$#'
- identifier: arguments.count
- count: 1
- path: app/Http/Controllers/UploadedFilesController.php
-
-
message: '#^Variable \$files might not be defined\.$#'
identifier: variable.undefined
@@ -9762,6 +9714,12 @@ parameters:
count: 5
path: app/Providers/ValidationServiceProvider.php
+ -
+ message: '#^Access to an undefined property App\\Models\\AccessoryCheckout\:\:\$created_by\.$#'
+ identifier: property.notFound
+ count: 1
+ path: app/Services/PredefinedKitCheckoutService.php
+
-
message: '#^Access to an undefined property App\\Models\\LicenseSeat\:\:\$created_by\.$#'
identifier: property.notFound
@@ -9771,7 +9729,7 @@ parameters:
-
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\Relation\:\:attach\(\)\.$#'
identifier: method.notFound
- count: 2
+ count: 1
path: app/Services/PredefinedKitCheckoutService.php
-