Skip to content

Commit

Permalink
ExcelWorkbook::count() type int
Browse files Browse the repository at this point in the history
Fix for 
Return type of Svrnm\ExcelDataTables\ExcelWorkbook::count() should either be compatible with Countable::count()
  • Loading branch information
ua0leg authored Jul 10, 2024
1 parent cc3511c commit 8d4acfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Svrnm/ExcelDataTables/ExcelWorkbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function isAutoSaveEnabled() {
*
* @return int
*/
public function count() {
public function count(): int {
$sheets = $this->getWorkbook()->getElementsByTagName('sheet');
return $sheets->length;

Expand Down

0 comments on commit 8d4acfa

Please sign in to comment.