Skip to content

Commit cbe6e7c

Browse files
kalessilNaktibalda
authored andcommitted
SCA: dropped import duplicates, fixed a few cases of php core API misuse (#5639)
* SCA: dropped import duplicates, fixed a few cases of php core API misuse * SCA: partial revert to probe if semaphore build gets fixed
1 parent 177ae4e commit cbe6e7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Codeception/Lib/DbPopulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function buildCommand($command, $dumpFile = null)
7979

8080
unset($vars[$key]);
8181
}
82-
return str_replace(array_keys($vars), array_values($vars), $command);
82+
return str_replace(array_keys($vars), $vars, $command);
8383
}
8484

8585
/**

src/Codeception/Lib/Driver/Sqlite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function load($sql)
3434
{
3535
if ($this->hasSnapshot) {
3636
$this->dbh = null;
37-
file_put_contents($this->filename, file_get_contents($this->filename . '_snapshot'));
37+
copy($this->filename . '_snapshot', $this->filename);
3838
$this->dbh = new \PDO($this->dsn, $this->user, $this->password);
3939
} else {
4040
if (file_exists($this->filename . '_snapshot')) {

0 commit comments

Comments
 (0)