We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe990ce + 4fcd7e5 commit 73975f7Copy full SHA for 73975f7
src/SimpleBackup.php
@@ -438,8 +438,8 @@ public function includeOnly($tables = [])
438
{
439
$this->include_only_some_tables = true;
440
441
- $this->tables_to_include = array_filter($tables, static function($table) {
442
- if(in_array($table, $this->getTargetTables(), false)) {
+ $this->tables_to_include = array_filter($this->getTargetTables(), static function($table) use ($tables) {
+ if(in_array($table, $tables, false)) {
443
return $table;
444
}
445
0 commit comments