Skip to content

A free open source IT asset/license management system

Added a comment around protected dates so we know wtf

snipe1bb1480f676d
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index 75c8343267..fa92f8fc96 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -42,6 +42,7 @@ class Asset extends Depreciable
*/
protected $injectUniqueIdentifier = true;
+ // We set these as protected dates so that they will be easily accessible via Carbon
protected $dates = [
'created_at',
'updated_at',
@@ -138,7 +139,7 @@ class Asset extends Depreciable
* @param User $user
* @param User $admin
* @param Carbon $checkout_at
- * @param null $expected_checkin
+ * @param Carbon $expected_checkin
* @param string $note
* @param null $name
* @return bool