Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2bf90d2

Browse files
authored
Fix Eloquent Models timestamp types (#34787)
1 parentfc7479a commit2bf90d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
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
publicfunctiongetCreatedAtColumn()
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
publicfunctiongetUpdatedAtColumn()
126126
{

‎src/Illuminate/Database/Eloquent/Model.php‎

Lines changed: 2 additions & 2 deletions
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
constCREATED_AT ='created_at';
150150

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp