Skip to content

A free open source IT asset/license management system

Updated method name (we renamed earlier, missed the rename here)

snipe5beb2feb1f50
diff --git a/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php b/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
index c20c2c5b11..7a18dfa789 100644
--- a/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
+++ b/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
@@ -4,9 +4,14 @@ namespace App\Actions\CheckoutRequests;
use App\Exceptions\DuplicateCheckoutRequest;
use App\Exceptions\ItemNotRequestable;
+use App\Models\Accessory;
use App\Models\Actionlog;
use App\Models\Asset;
+use App\Models\AssetModel;
use App\Models\Company;
+use App\Models\Component;
+use App\Models\Consumable;
+use App\Models\License;
use App\Models\Setting;
use App\Models\User;
use App\Notifications\RequestAssetNotification;
@@ -33,7 +38,7 @@ class CreateCheckoutRequestAction
* an Asset-specific denormalization; other types don't have one)
* - fires the admin-alert notification
*
- * @param Model $requestable Must be a requestable-trait user
+ * @param Accessory|Asset|AssetModel|Component|Consumable|License $requestable
* @param int|null $qty Quantity for qty-tracked types (defaults to 1)
* @param string|null $startDate Optional reservation window start
* @param string|null $endDate Optional reservation window end
@@ -51,7 +56,7 @@ class CreateCheckoutRequestAction
?string $endDate = null,
?string $notes = null,
): bool {
- if (! method_exists($requestable, 'isFlaggedRequestable') || ! $requestable->isFlaggedRequestable()) {
+ if (! $requestable->isFlaggedRequestable()) {
throw new ItemNotRequestable;
}
if (! Company::isCurrentUserHasAccess($requestable)) {
diff --git a/app/Console/Commands/CleanOldCheckoutRequests.php b/app/Console/Commands/CleanOldCheckoutRequests.php
index ed9835419b..7ffd7bd313 100644
--- a/app/Console/Commands/CleanOldCheckoutRequests.php
+++ b/app/Console/Commands/CleanOldCheckoutRequests.php
@@ -72,6 +72,11 @@ class CleanOldCheckoutRequests extends Command
private function shouldSoftDelete(CheckoutRequest $request)
{
- return $request->requestable->trashed() || $request->user->trashed();
+ /** @var \Illuminate\Database\Eloquent\Model&object{trashed(): bool} $requestable */
+ $requestable = $request->requestable;
+ /** @var \App\Models\User $user */
+ $user = $request->user;
+
+ return $requestable->trashed() || $user->trashed();
}
}
diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php
index 9384759eaf..b30d691e31 100644
--- a/app/Http/Controllers/Api/AssetsController.php
+++ b/app/Http/Controllers/Api/AssetsController.php
@@ -1942,7 +1942,7 @@ class AssetsController extends Controller
break;
}
- $assets->requestableAssets();
+ $assets->requestable();
// Make sure the offset and limit are actually integers and do not exceed system limits
$total = $assets->count();
diff --git a/app/Http/Controllers/Api/CheckoutRequest.php b/app/Http/Controllers/Api/CheckoutRequest.php
index bada294dc6..13f18a52fb 100644
--- a/app/Http/Controllers/Api/CheckoutRequest.php
+++ b/app/Http/Controllers/Api/CheckoutRequest.php
@@ -298,7 +298,7 @@ class CheckoutRequest extends Controller
private function fireRequestNotification($requestable, User $user, string $action): void
{
$settings = Setting::getSettings();
- if ($settings->alert_email === '' || $settings->alerts_enabled !== '1' || config('app.lock_passwords')) {
+ if ($settings->alert_email == '' || $settings->alerts_enabled != '1' || config('app.lock_passwords')) {
return;
}
diff --git a/app/Http/Transformers/AccessoriesTransformer.php b/app/Http/Transformers/AccessoriesTransformer.php
index a5ff707040..e68c091743 100644
--- a/app/Http/Transformers/AccessoriesTransformer.php
+++ b/app/Http/Transformers/AccessoriesTransformer.php
@@ -96,7 +96,7 @@ class AccessoriesTransformer
// standard index endpoint doesn't preload requests, so the
// relationLoaded gate keeps a per-row query out of that path.
$userHasOpenRequest = auth()->check() && $accessory->relationLoaded('requests') && $accessory->requests->contains(
- fn ($request) => $request->user_id === auth()->id() && $request->canceled_at === null
+ fn (\App\Models\CheckoutRequest $request) => $request->user_id === auth()->id() && $request->canceled_at === null
);
$permissions_array = [];
diff --git a/app/Http/Transformers/AssetModelsTransformer.php b/app/Http/Transformers/AssetModelsTransformer.php
index 1a79d281e8..be9ae29d0a 100644
--- a/app/Http/Transformers/AssetModelsTransformer.php
+++ b/app/Http/Transformers/AssetModelsTransformer.php
@@ -93,7 +93,7 @@ class AssetModelsTransformer
// relationLoaded gate keeps a per-row query out of that path.
// Mirrors the shape AccessoriesTransformer uses.
$userHasOpenRequest = auth()->check() && $assetmodel->relationLoaded('requests') && $assetmodel->requests->contains(
- fn ($request) => $request->user_id === auth()->id() && $request->canceled_at === null
+ fn (\App\Models\CheckoutRequest $request) => $request->user_id === auth()->id() && $request->canceled_at === null
);
$array['assigned_to_self'] = $userHasOpenRequest;
diff --git a/app/Http/Transformers/CheckoutRequestsTransformer.php b/app/Http/Transformers/CheckoutRequestsTransformer.php
index 675fde058f..23145df5a1 100644
--- a/app/Http/Transformers/CheckoutRequestsTransformer.php
+++ b/app/Http/Transformers/CheckoutRequestsTransformer.php
@@ -45,6 +45,7 @@ class CheckoutRequestsTransformer
// itemRequested() (which hydrates the model) rather than
// requestedItem() (which returns the MorphTo relation itself).
$item = $request->itemRequested();
+ /** @var \App\Models\User|null $requester */
$requester = $request->user;
return [
diff --git a/app/Http/Transformers/ComponentsTransformer.php b/app/Http/Transformers/ComponentsTransformer.php
index ccc0dd5470..483745e1b5 100644
--- a/app/Http/Transformers/ComponentsTransformer.php
+++ b/app/Http/Transformers/ComponentsTransformer.php
@@ -90,7 +90,7 @@ class ComponentsTransformer
// gate keeps the standard-index path from firing an N+1 (only
// the requestable() endpoint preloads `requests`).
$userHasOpenRequest = auth()->check() && $component->relationLoaded('requests') && $component->requests->contains(
- fn ($request) => $request->user_id === auth()->id() && $request->canceled_at === null
+ fn (\App\Models\CheckoutRequest $request) => $request->user_id === auth()->id() && $request->canceled_at === null
);
$permissions_array = [];
$permissions_array['assigned_to_self'] = $userHasOpenRequest;
diff --git a/app/Http/Transformers/ConsumablesTransformer.php b/app/Http/Transformers/ConsumablesTransformer.php
index 75fd614e4c..acc047cfff 100644
--- a/app/Http/Transformers/ConsumablesTransformer.php
+++ b/app/Http/Transformers/ConsumablesTransformer.php
@@ -95,7 +95,7 @@ class ConsumablesTransformer
// gate keeps the standard-index path from firing an N+1 (only
// the requestable() endpoint preloads `requests`).
$userHasOpenRequest = auth()->check() && $consumable->relationLoaded('requests') && $consumable->requests->contains(
- fn ($request) => $request->user_id === auth()->id() && $request->canceled_at === null
+ fn (\App\Models\CheckoutRequest $request) => $request->user_id === auth()->id() && $request->canceled_at === null
);
$permissions_array['assigned_to_self'] = $userHasOpenRequest;
diff --git a/app/Http/Transformers/LicensesTransformer.php b/app/Http/Transformers/LicensesTransformer.php
index db642a0f6e..260a39b258 100644
--- a/app/Http/Transformers/LicensesTransformer.php
+++ b/app/Http/Transformers/LicensesTransformer.php
@@ -80,7 +80,7 @@ class LicensesTransformer
// index endpoint doesn't preload requests, so gate on
// relationLoaded to avoid a per-row query.
$userHasOpenRequest = auth()->check() && $license->relationLoaded('requests') && $license->requests->contains(
- fn ($request) => $request->user_id === auth()->id() && $request->canceled_at === null
+ fn (\App\Models\CheckoutRequest $request) => $request->user_id === auth()->id() && $request->canceled_at === null
);
$permissions_array = [];
$permissions_array['assigned_to_self'] = $userHasOpenRequest;
diff --git a/app/Listeners/FulfillCheckoutRequestListener.php b/app/Listeners/FulfillCheckoutRequestListener.php
index 60c57e6ea9..0c9a4a97f4 100644
--- a/app/Listeners/FulfillCheckoutRequestListener.php
+++ b/app/Listeners/FulfillCheckoutRequestListener.php
@@ -85,13 +85,9 @@ class FulfillCheckoutRequestListener
// Pass the event's quantity through so partial-fulfillment
// tracking works. A request for 5 pens that gets a checkout
// of 3 should advance fulfilled_quantity by 3 (not by the
- // full remainder). null qty on the event (older single-
- // target flows without a qty concept) falls back to the
- // "consume the whole remainder" default in the action.
- $eventQty = property_exists($event, 'quantity') ? (int) $event->quantity : null;
- if ($eventQty !== null && $eventQty < 1) {
- $eventQty = null;
- }
+ // full remainder). Non-positive falls back to "consume the
+ // whole remainder" in the action.
+ $eventQty = $event->quantity > 0 ? $event->quantity : null;
foreach ($openRequests as $request) {
try {
diff --git a/app/Models/CheckoutRequest.php b/app/Models/CheckoutRequest.php
index 9fd21c7d96..bf93b1f066 100644
--- a/app/Models/CheckoutRequest.php
+++ b/app/Models/CheckoutRequest.php
@@ -113,6 +113,9 @@ class CheckoutRequest extends Model
});
}
+ /**
+ * @return BelongsTo<User, $this>
+ */
public function user(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id', 'id');
@@ -123,7 +126,7 @@ class CheckoutRequest extends Model
return $this->user()->withTrashed()->first();
}
- public function requestedItem()
+ public function requestedItem(): \Illuminate\Database\Eloquent\Relations\MorphTo
{
return $this->morphTo('requestable');
}
@@ -135,7 +138,7 @@ class CheckoutRequest extends Model
* requestable_type/requestable_id find it under the expected
* key. Older callers keep using requestedItem() unchanged.
*/
- public function requestable()
+ public function requestable(): \Illuminate\Database\Eloquent\Relations\MorphTo
{
return $this->morphTo();
}
diff --git a/app/Notifications/RequestAssetCancelation.php b/app/Notifications/RequestAssetCancelation.php
index 8aa928b67f..198ecd5308 100644
--- a/app/Notifications/RequestAssetCancelation.php
+++ b/app/Notifications/RequestAssetCancelation.php
@@ -15,6 +15,10 @@ class RequestAssetCancelation extends Notification
{
private $params;
+ public $start_date;
+
+ public $end_date;
+
/**
* Create a new notification instance.
*/
diff --git a/app/Notifications/RequestAssetNotification.php b/app/Notifications/RequestAssetNotification.php
index 5f46dc1b7a..e6f5c43e22 100644
--- a/app/Notifications/RequestAssetNotification.php
+++ b/app/Notifications/RequestAssetNotification.php
@@ -14,6 +14,10 @@ class RequestAssetNotification extends Notification
{
private $params;
+ public $start_date;
+
+ public $end_date;
+
/**
* Create a new notification instance.
*/
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 5d4f28bd71..ae25eefff0 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1,11 +1,5 @@
parameters:
ignoreErrors:
- -
- message: '#^Method App\\Actions\\CheckoutRequests\\CreateCheckoutRequestAction\:\:run\(\) should return string but returns true\.$#'
- identifier: return.type
- count: 1
- path: app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
-
-
message: '#^Access to an undefined property App\\Models\\Company\:\:\$accessories_count\.$#'
identifier: property.notFound
@@ -205,26 +199,14 @@ parameters:
path: app/Console/Commands/CheckinAndDeleteItems.php
-
- message: '#^Access to an undefined property App\\Models\\CheckoutRequest\:\:\$requestable\.$#'
- identifier: property.notFound
- count: 2
- path: app/Console/Commands/CleanOldCheckoutRequests.php
-
- -
- message: '#^Access to an undefined property App\\Models\\CheckoutRequest\:\:\$user\.$#'
- identifier: property.notFound
- count: 2
- path: app/Console/Commands/CleanOldCheckoutRequests.php
-
- -
- message: '#^Relation ''requestedItem'' is not found in App\\Models\\CheckoutRequest model\.$#'
- identifier: larastan.relationExistence
+ message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Model\:\:trashed\(\)\.$#'
+ identifier: method.notFound
count: 1
path: app/Console/Commands/CleanOldCheckoutRequests.php
-
- message: '#^Relation ''user'' is not found in App\\Models\\CheckoutRequest model\.$#'
- identifier: larastan.relationExistence
+ message: '#^PHPDoc tag @var has invalid value \(\\Illuminate\\Database\\Eloquent\\Model&object\{trashed\(\)\: bool\} \$requestable\)\: Unexpected token "\(", expected ''\:'' at offset 59 on line 1$#'
+ identifier: phpDoc.parseError
count: 1
path: app/Console/Commands/CleanOldCheckoutRequests.php
@@ -624,6 +606,12 @@ parameters:
count: 6
path: app/Console/Commands/Version.php
+ -
+ message: '#^Variable \$app_version might not be defined\.$#'
+ identifier: variable.undefined
+ count: 3
+ path: app/Console/Commands/Version.php
+
-
message: '#^Strict comparison using \=\=\= between bool\|null and 1 will always evaluate to false\.$#'
identifier: identical.alwaysFalse
@@ -951,7 +939,7 @@ parameters:
-
message: '#^Access to an undefined property App\\Models\\AccessoryCheckout\:\:\$created_by\.$#'
identifier: property.notFound
- count: 1
+ count: 2
path: app/Http/Controllers/Accessories/AccessoryCheckoutController.php
-
@@ -2250,12 +2238,6 @@ parameters:
count: 1
path: app/Http/Controllers/Assets/AssetsController.php
- -
- message: '#^Access to an undefined property App\\Models\\CheckoutRequest\:\:\$requestable\.$#'
- identifier: property.notFound
- count: 1
- path: app/Http/Controllers/Assets/AssetsController.php
-
-
message: '#^Access to an undefined property App\\Models\\SnipeModel\:\:\$asset_tag\.$#'
identifier: property.notFound
@@ -2352,12 +2334,6 @@ parameters:
count: 1
path: app/Http/Controllers/Assets/AssetsController.php
- -
- message: '#^Relation ''user'' is not found in App\\Models\\CheckoutRequest model\.$#'
- identifier: larastan.relationExistence
- count: 1
- path: app/Http/Controllers/Assets/AssetsController.php
-
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
@@ -2745,7 +2721,7 @@ parameters:
-
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\Relation\:\:attach\(\)\.$#'
identifier: method.notFound
- count: 1
+ count: 2
path: app/Http/Controllers/Components/ComponentCheckoutController.php
-
@@ -2823,7 +2799,7 @@ parameters:
-
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\Relation\:\:attach\(\)\.$#'
identifier: method.notFound
- count: 1
+ count: 2
path: app/Http/Controllers/Consumables/ConsumableCheckoutController.php
-
@@ -3894,12 +3870,6 @@ parameters:
count: 1
path: app/Http/Controllers/ViewAssetsController.php
- -
- message: '#^Relation ''requests'' is not found in App\\Models\\AssetModel model\.$#'
- identifier: larastan.relationExistence
- count: 1
- path: app/Http/Controllers/ViewAssetsController.php
-
-
message: '#^PHPDoc type array of property App\\Http\\Kernel\:\:\$middleware is not covariant with PHPDoc type array\<int, string\> of overridden property Illuminate\\Foundation\\Http\\Kernel\:\:\$middleware\.$#'
identifier: property.phpDocType
@@ -5724,6 +5694,12 @@ parameters:
count: 1
path: app/Models/Accessory.php
+ -
+ message: '#^Call to function method_exists\(\) with \$this\(App\\Models\\Accessory\) and ''numRemaining'' will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
+ count: 1
+ path: app/Models/Accessory.php
+
-
message: '#^Cannot access property \$id on class\-string\|object\.$#'
identifier: property.nonObject
@@ -5814,6 +5790,12 @@ parameters:
count: 1
path: app/Models/Accessory.php
+ -
+ message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Accessory\)\> and ''App\\\\Models\\\\AssetModel'' will always evaluate to false\.$#'
+ identifier: identical.alwaysFalse
+ count: 1
+ path: app/Models/Accessory.php
+
-
message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Accessory\)\> and ''App\\\\Models\\\\LicenseSeat'' will always evaluate to false\.$#'
identifier: identical.alwaysFalse
@@ -6102,6 +6084,12 @@ parameters:
count: 1
path: app/Models/Asset.php
+ -
+ message: '#^Offset class\-string\<static\(App\\Models\\Asset\)\> on array\{App\\Models\\Accessory\: ''accessories\.fulfill…'', App\\Models\\Consumable\: ''consumables\.fulfill…'', App\\Models\\Component\: ''components\.fulfill…'', App\\Models\\License\: ''licenses\.fulfill…'', App\\Models\\AssetModel\: ''models\.fulfill…''\} on left side of \?\? does not exist\.$#'
+ identifier: nullCoalesce.offset
+ count: 1
+ path: app/Models/Asset.php
+
-
message: '#^PHPDoc tag @param references unknown parameter\: \$acceptedBy$#'
identifier: parameter.notFound
@@ -6270,12 +6258,24 @@ parameters:
count: 1
path: app/Models/Asset.php
+ -
+ message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#'
+ identifier: identical.alwaysTrue
+ count: 1
+ path: app/Models/Asset.php
+
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: app/Models/Asset.php
+ -
+ message: '#^Unreachable statement \- code above always terminates\.$#'
+ identifier: deadCode.unreachable
+ count: 1
+ path: app/Models/Asset.php
+
-
message: '#^Unsafe access to private property App\\Models\\Asset\:\:\$customFieldFilterMapCache through static\:\:\.$#'
identifier: staticClassAccess.privateProperty
@@ -6468,6 +6468,12 @@ parameters:
count: 1
path: app/Models/AssetModel.php
+ -
+ message: '#^Using nullsafe property access "\?\-\>require_acceptance" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
+ identifier: nullsafe.neverNull
+ count: 1
+ path: app/Models/AssetModel.php
+
-
message: '#^Method App\\Models\\Builders\\MaintenanceQueryBuilder\:\:active\(\) should return static\(App\\Models\\Builders\\MaintenanceQueryBuilder\) but returns App\\Models\\Builders\\MaintenanceQueryBuilder\.$#'
identifier: return.type
@@ -6618,6 +6624,18 @@ parameters:
count: 1
path: app/Models/CheckoutAcceptance.php
+ -
+ message: '#^Call to function is_array\(\) with string will always evaluate to false\.$#'
+ identifier: function.impossibleType
+ count: 1
+ path: app/Models/CheckoutRequest.php
+
+ -
+ message: '#^Unsafe access to private property App\\Models\\CheckoutRequest\:\:\$customFieldFilterMapCache through static\:\:\.$#'
+ identifier: staticClassAccess.privateProperty
+ count: 4
+ path: app/Models/CheckoutRequest.php
+
-
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$category\.$#'
identifier: property.notFound
@@ -6948,6 +6966,12 @@ parameters:
count: 1
path: app/Models/Component.php
+ -
+ message: '#^Call to function method_exists\(\) with \$this\(App\\Models\\Component\) and ''numRemaining'' will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
+ count: 1
+ path: app/Models/Component.php
+
-
message: '#^Cannot access property \$id on class\-string\|object\.$#'
identifier: property.nonObject
@@ -7002,6 +7026,12 @@ parameters:
count: 1
path: app/Models/Component.php
+ -
+ message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Component\)\> and ''App\\\\Models\\\\AssetModel'' will always evaluate to false\.$#'
+ identifier: identical.alwaysFalse
+ count: 1
+ path: app/Models/Component.php
+
-
message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Component\)\> and ''App\\\\Models\\\\LicenseSeat'' will always evaluate to false\.$#'
identifier: identical.alwaysFalse
@@ -7170,6 +7200,12 @@ parameters:
count: 1
path: app/Models/Consumable.php
+ -
+ message: '#^Call to function method_exists\(\) with \$this\(App\\Models\\Consumable\) and ''numRemaining'' will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
+ count: 1
+ path: app/Models/Consumable.php
+
-
message: '#^Cannot access property \$id on class\-string\|object\.$#'
identifier: property.nonObject
@@ -7188,12 +7224,6 @@ parameters:
count: 1
path: app/Models/Consumable.php
- -
- message: '#^Method App\\Models\\Consumable\:\:setRequestableAttribute\(\) should return Illuminate\\Database\\Eloquent\\Relations\\Relation but return statement is missing\.$#'
- identifier: return.missing
- count: 1
- path: app/Models/Consumable.php
-
-
message: '#^PHPDoc tag @SuppressWarnings has invalid value \(\(PHPMD\.UnusedFormalParameter\)\)\: Unexpected token "\.UnusedFormalParameter\)", expected ''\)'' at offset 351 on line 10$#'
identifier: phpDoc.parseError
@@ -7236,6 +7266,12 @@ parameters:
count: 1
path: app/Models/Consumable.php
+ -
+ message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Consumable\)\> and ''App\\\\Models\\\\AssetModel'' will always evaluate to false\.$#'
+ identifier: identical.alwaysFalse
+ count: 1
+ path: app/Models/Consumable.php
+
-
message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\Consumable\)\> and ''App\\\\Models\\\\LicenseSeat'' will always evaluate to false\.$#'
identifier: identical.alwaysFalse
@@ -7920,6 +7956,12 @@ parameters:
count: 1
path: app/Models/License.php
+ -
+ message: '#^Call to function method_exists\(\) with \$this\(App\\Models\\License\) and ''numRemaining'' will always evaluate to true\.$#'
+ identifier: function.alreadyNarrowedType
+ count: 1
+ path: app/Models/License.php
+
-
message: '#^Method App\\Models\\License\:\:adjustSeatCount\(\) should return Illuminate\\Database\\Eloquent\\Relations\\Relation but returns false\.$#'
identifier: return.type
@@ -7980,6 +8022,12 @@ parameters:
count: 1
path: app/Models/License.php
+ -
+ message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\License\)\> and ''App\\\\Models\\\\AssetModel'' will always evaluate to false\.$#'
+ identifier: identical.alwaysFalse
+ count: 1
+ path: app/Models/License.php
+
-
message: '#^Strict comparison using \=\=\= between class\-string\<static\(App\\Models\\License\)\> and ''App\\\\Models\\\\LicenseSeat'' will always evaluate to false\.$#'
identifier: identical.alwaysFalse