File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public function set_name( string $name ): self {
211211 *
212212 * @return self
213213 */
214- public function set_default ( mixed $ default ): self {
214+ public function set_default ( $ default ): self {
215215 $ this ->default = $ default ;
216216 return $ this ;
217217 }
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function set_name( string $name ): self;
115115 *
116116 * @throws InvalidArgumentException If the default is not valid.
117117 */
118- public function set_default ( mixed $ default ): self ;
118+ public function set_default ( $ default ): self ;
119119
120120 /**
121121 * Set the nullable of the column.
Original file line number Diff line number Diff line change 1111
1212namespace StellarWP \Schema \Columns ;
1313
14- use StellarWP \Schema \Columns \Contracts \ Datetime_Column ;
14+ use StellarWP \Schema \Columns \Datetime_Column ;
1515
1616/**
1717 * Class Created_At
@@ -33,5 +33,5 @@ class Created_At extends Datetime_Column {
3333 *
3434 * @var string
3535 */
36- protected string $ default = 'CURRENT_TIMESTAMP ' ;
36+ protected $ default = 'CURRENT_TIMESTAMP ' ;
3737}
Original file line number Diff line number Diff line change 1111
1212namespace StellarWP \Schema \Columns ;
1313
14- use StellarWP \Schema \Columns \Contracts \ Datetime_Column ;
14+ use StellarWP \Schema \Columns \Datetime_Column ;
1515
1616/**
1717 * Class Last_Changed
@@ -33,7 +33,7 @@ class Last_Changed extends Datetime_Column {
3333 *
3434 * @var string
3535 */
36- protected string $ default = 'CURRENT_TIMESTAMP ' ;
36+ protected $ default = 'CURRENT_TIMESTAMP ' ;
3737
3838 /**
3939 * The on update value of the column.
Original file line number Diff line number Diff line change 1111
1212namespace StellarWP \Schema \Columns ;
1313
14- use StellarWP \Schema \Columns \Contracts \ Datetime_Column ;
14+ use StellarWP \Schema \Columns \Datetime_Column ;
1515
1616/**
1717 * Class Updated_At
You can’t perform that action at this time.
0 commit comments