File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+
2
+ .idea /
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function getHeadingStyle()
120
120
* @param string $name
121
121
* @return $this
122
122
*/
123
- public function name ($ name )
123
+ public function name (? string $ name )
124
124
{
125
125
if (is_string ($ name )) {
126
126
$ this ->name = $ name ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testStore()
32
32
->store ($ storePath );
33
33
34
34
// 读取
35
- $ this ->assertSingleSheet ($ storePath , 'Sheet1 ' , $ users );
35
+ $ this ->assertSingleSheet ($ storePath , '0 ' , $ users );
36
36
37
37
/*
38
38
|---------------------------------------------------------------
@@ -81,7 +81,7 @@ public function testRaw()
81
81
file_put_contents ($ storePath , $ contents );
82
82
83
83
// 读取
84
- $ this ->assertSingleSheet ($ storePath , 'Sheet1 ' , $ users );
84
+ $ this ->assertSingleSheet ($ storePath , '0 ' , $ users );
85
85
86
86
/*
87
87
|---------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function test()
24
24
$ storePath = $ this ->generateTempFilePath ('xlsx ' );
25
25
26
26
$ sheet = Excel::createSheet ($ users )
27
+ ->name ('test ' )
27
28
->headingStyle (
28
29
(new StyleBuilder )
29
30
->setFontColor (Color::BLUE )
@@ -43,7 +44,7 @@ public function test()
43
44
Excel::export ($ sheet )->store ($ storePath );
44
45
45
46
// 读取
46
- $ this ->assertSingleSheet ($ storePath , 'Sheet1 ' , $ users );
47
+ $ this ->assertSingleSheet ($ storePath , 'test ' , $ users );
47
48
48
49
/*
49
50
|---------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments