Skip to content

Commit

Permalink
Fix Eloquent Models timestamp types (#34787)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev authored Oct 11, 2020
1 parent fc7479a commit 2bf90d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function usesTimestamps()
/**
* Get the name of the "created at" column.
*
* @return string
* @return string|null
*/
public function getCreatedAtColumn()
{
Expand All @@ -120,7 +120,7 @@ public function getCreatedAtColumn()
/**
* Get the name of the "updated at" column.
*
* @return string
* @return string|null
*/
public function getUpdatedAtColumn()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,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';

Expand Down

0 comments on commit 2bf90d2

Please sign in to comment.