File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
2222namespace App\Structs;
2323
2424use Angle\Structure\Structure;
25+ use Carbon\Carbon;
2526
2627class CarStruct
2728{
@@ -32,7 +33,7 @@ class CarStruct
3233 public $mark = '';
3334 public $range = 0;
3435 public $power = 0.0;
35- public $createdAt = ' Carbon\Carbon' ;
36+ public $createdAt = Carbon::class ;
3637}
3738```
3839
Original file line number Diff line number Diff line change 11<?php
22
3- use PHPUnit \Framework \TestCase ;
43use Angle \Structure \Structure ;
4+ use Carbon \Carbon ;
55use InvalidArgumentException as Exception ;
6+ use PHPUnit \Framework \TestCase ;
67
78class Transaction
89{
@@ -12,7 +13,7 @@ class Transaction
1213 public $ hash = '' ;
1314 public $ success = false ;
1415 public $ amount = 0.0 ;
15- public $ time = ' Carbon\Carbon ' ;
16+ public $ time = Carbon::class ;
1617}
1718
1819final class StructureTest extends TestCase
You can’t perform that action at this time.
0 commit comments