Skip to content

Commit 981654a

Browse files
committed
Changed object from protected to public
1 parent 12f9072 commit 981654a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Maatwebsite/Excel/Excel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Excel extends \PHPExcel
1616
{
1717

1818

19-
protected $excel;
19+
public $excel;
2020
protected $object;
2121
public $i = 0; // the current sheet number
2222
public $title;
@@ -117,8 +117,8 @@ public function load($file, $firstRowAsLabel = false)
117117
// Load the file
118118
$this->excel = $this->reader->load($this->file);
119119

120-
// Return reader object for chaining methods from PHPExcel
121-
return $this->excel;
120+
// Return itself
121+
return $this
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)