Remove table by name cs fix

This commit is contained in:
aswinkumar863 2022-04-03 18:51:06 +05:30
parent feffb76944
commit 4db82032b4
No known key found for this signature in database
GPG Key ID: 8A69BFA6AEF8FA3E
1 changed files with 1 additions and 1 deletions

View File

@ -2066,7 +2066,7 @@ class Worksheet implements IComparable
*/ */
public function removeTableByName(string $name): self public function removeTableByName(string $name): self
{ {
foreach($this->tableCollection as $key => $table) { foreach ($this->tableCollection as $key => $table) {
if ($table->getName() === $name) { if ($table->getName() === $name) {
unset($this->tableCollection[$key]); unset($this->tableCollection[$key]);
} }