It seems like $backupFilePath can also be of type boolean; however, parameter $backupFilePath of floor12\backup\logic\Dat...Restorer::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
30
new DatabaseBackupRestorer(/** @scrutinizer ignore-type */ $backupFilePath, $connection);
Loading history...
31
}
32
33
public function testRestoreSuccess()
34
{
35
$databaseName = 'testDataBaseName';
36
$connection = new ConnectionMock(['databaseName' => $databaseName]);
It seems like $backupFilePath can also be of type boolean; however, parameter $backupFilePath of floor12\backup\logic\Dat...Restorer::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
45
$restorer = new DatabaseBackupRestorer(/** @scrutinizer ignore-type */ $backupFilePath, $connection);