Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #97 from elgentos/php81
Browse files Browse the repository at this point in the history
Php81
  • Loading branch information
peterjaap authored Jul 8, 2022
2 parents 96335a6 + 4a794f0 commit a5a7e07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"alias": "masquerade.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
"KevinGH\\Box\\Compactor\\Json",
"KevinGH\\Box\\Compactor\\Php"
],
"compression": "GZ",
"directories": [
Expand All @@ -25,7 +24,5 @@
"in": "vendor"
}
],
"main": "bin/masquerade",
"output": "dist/masquerade.phar",
"stub": true
"output": "dist/masquerade.phar"
}
Binary file modified box.phar
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Elgentos/Masquerade/Console/IdentifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected function getTableNames(): array
}

$tableNames = array_map(function ($tableName) {
return $this->str_replace_first($this->prefix, null, $tableName);
return $this->str_replace_first($this->prefix, '', $tableName);
}, $tableNames);

$tableNames = array_diff($tableNames, $excludedTableNames);
Expand Down

0 comments on commit a5a7e07

Please sign in to comment.