Fix some failing tests for PHP 8.1
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
6b169b9fdf
commit
eb96360cda
@ -1051,7 +1051,7 @@ class Import
|
||||
?array &$analyses = null,
|
||||
?array &$additional_sql = null,
|
||||
?array $options = null,
|
||||
array &$sql_data
|
||||
array &$sql_data = []
|
||||
): void {
|
||||
global $import_notice, $dbi;
|
||||
|
||||
|
||||
@ -535,6 +535,10 @@ class StructureControllerTest extends AbstractTestCase
|
||||
$tablesProperty = $class->getProperty('tables');
|
||||
$tablesProperty->setAccessible(true);
|
||||
|
||||
$numTables = $class->getProperty('numTables');
|
||||
$numTables->setAccessible(true);
|
||||
$numTables->setValue($controller, 1);
|
||||
|
||||
//no tables
|
||||
$_REQUEST['db'] = 'my_unique_test_db';
|
||||
$tablesProperty->setValue($controller, []);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user