From 3bead4a0adbb029bf9efa1ed7faa7a8691510aee Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Sun, 11 Oct 2020 00:04:49 +0300 Subject: [PATCH] Add missing nullable type declaration --- src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php | 4 ++-- src/Illuminate/Database/Eloquent/Model.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php index f820bf7aa9eb..3ede9eb66031 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php @@ -110,7 +110,7 @@ public function usesTimestamps() /** * Get the name of the "created at" column. * - * @return string + * @return string|null */ public function getCreatedAtColumn() { @@ -120,7 +120,7 @@ public function getCreatedAtColumn() /** * Get the name of the "updated at" column. * - * @return string + * @return string|null */ public function getUpdatedAtColumn() { diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index 2636eb7fcb90..d836e6de7999 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -146,14 +146,14 @@ abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializab /** * The name of the "created at" column. * - * @var string + * @var string|null */ const CREATED_AT = 'created_at'; /** * The name of the "updated at" column. * - * @var string + * @var string|null */ const UPDATED_AT = 'updated_at';