private function vacuum() {
$prevSize = filesize( $this->db->getDbFilePath() );
if ( $prevSize == 0 ) {
- $this->error( "Can't vacuum an empty database.\n", true );
+ $this->fatalError( "Can't vacuum an empty database.\n" );
}
$this->output( 'VACUUM: ' );
$this->error( "Error: SQLite support not found\n" );
}
$files = [ $this->getOption( 'check-syntax' ) ];
- $files += $this->mArgs;
+ $files = array_merge( $files, $this->mArgs );
$result = Sqlite::checkSqlSyntax( $files );
if ( $result === true ) {
$this->output( "SQL syntax check: no errors detected.\n" );