File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Structs are php classes that make the use of the ```Structure``` trait. The trai
22
22
namespace App\Structs;
23
23
24
24
use Angle\Structure\Structure;
25
+ use Carbon\Carbon;
25
26
26
27
class CarStruct
27
28
{
@@ -32,7 +33,7 @@ class CarStruct
32
33
public $mark = '';
33
34
public $range = 0;
34
35
public $power = 0.0;
35
- public $createdAt = ' Carbon\Carbon' ;
36
+ public $createdAt = Carbon::class ;
36
37
}
37
38
```
38
39
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use PHPUnit \Framework \TestCase ;
4
3
use Angle \Structure \Structure ;
4
+ use Carbon \Carbon ;
5
5
use InvalidArgumentException as Exception ;
6
+ use PHPUnit \Framework \TestCase ;
6
7
7
8
class Transaction
8
9
{
@@ -12,7 +13,7 @@ class Transaction
12
13
public $ hash = '' ;
13
14
public $ success = false ;
14
15
public $ amount = 0.0 ;
15
- public $ time = ' Carbon\Carbon ' ;
16
+ public $ time = Carbon::class ;
16
17
}
17
18
18
19
final class StructureTest extends TestCase
You can’t perform that action at this time.
0 commit comments