Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bf90d2

Browse files
authored
Fix Eloquent Models timestamp types (#34787)
1 parent fc7479a commit 2bf90d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function usesTimestamps()
110110
/**
111111
* Get the name of the "created at" column.
112112
*
113-
* @return string
113+
* @return string|null
114114
*/
115115
public function getCreatedAtColumn()
116116
{
@@ -120,7 +120,7 @@ public function getCreatedAtColumn()
120120
/**
121121
* Get the name of the "updated at" column.
122122
*
123-
* @return string
123+
* @return string|null
124124
*/
125125
public function getUpdatedAtColumn()
126126
{

src/Illuminate/Database/Eloquent/Model.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializab
144144
/**
145145
* The name of the "created at" column.
146146
*
147-
* @var string
147+
* @var string|null
148148
*/
149149
const CREATED_AT = 'created_at';
150150

151151
/**
152152
* The name of the "updated at" column.
153153
*
154-
* @var string
154+
* @var string|null
155155
*/
156156
const UPDATED_AT = 'updated_at';
157157

0 commit comments

Comments
 (0)