Skip to content

Commit 0df6780

Browse files
Merge pull request #19483 from kamil-tekiela/Remove-unused-lines-from-psalm.xml
Remove unused lines from psalm.xml
2 parents 710b012 + 6457695 commit 0df6780

File tree

6 files changed

+1
-23
lines changed

6 files changed

+1
-23
lines changed

psalm-baseline.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6463,9 +6463,6 @@
64636463
<code><![CDATA[Config::getInstance()]]></code>
64646464
<code><![CDATA[Config::getInstance()]]></code>
64656465
</DeprecatedMethod>
6466-
<InvalidArgument>
6467-
<code><![CDATA[$GLOBALS[$match]]]></code>
6468-
</InvalidArgument>
64696466
<InvalidReturnStatement>
64706467
<code><![CDATA[$GLOBALS[$name] ?? $name ?? '']]></code>
64716468
</InvalidReturnStatement>
@@ -6490,6 +6487,7 @@
64906487
<code><![CDATA[new $class()]]></code>
64916488
</MixedMethodCall>
64926489
<PossiblyInvalidArgument>
6490+
<code><![CDATA[$GLOBALS[$match]]]></code>
64936491
<code><![CDATA[$_GET[$opt]]]></code>
64946492
<code><![CDATA[$_REQUEST[$opt]]]></code>
64956493
<code><![CDATA[$val]]></code>

psalm.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
buffer_needed: bool,
4444
cached_affected_rows: int|numeric-string,
4545
charset: string,
46-
charset_connection: string,
47-
collation_connection: string,
4846
complete_query: string,
4947
compression: 'none'|'zip'|'gzip',
5048
conn_error: string,
@@ -58,32 +56,21 @@
5856
error: bool,
5957
excel_edition: 'win'|'mac_excel2003'|'mac_excel2008',
6058
file_handle: resource|null,
61-
finished: bool,
6259
from_cookie: bool,
6360
hostname: string,
64-
import_file: string,
65-
import_file_name: string,
6661
import_text: string,
6762
knjenc: string,
68-
lang: string,
69-
maximum_time: 0|positive-int,
7063
maxsize: string,
7164
memory_limit: int,
72-
offset: int,
7365
old_tz: string,
7466
onfly_compression: bool,
7567
output_charset_conversion: bool,
7668
output_kanji_conversion: bool,
77-
plugin_param: array{export_type: string, single_table: bool},
7869
plugin_scripts: string[],
7970
pma_auth_server: string,
80-
PMA_PHP_SELF: string,
8171
querytime: float|int,
82-
read_limit: int,
8372
save_on_server: bool,
8473
SESSION_KEY: string,
85-
showtable: array&lt;string, string|null&gt;,
86-
tbl_storage_engine: string,
8774
username: string
8875
}"/>
8976
</globals>

tests/unit/Controllers/Database/EventsControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ final class EventsControllerTest extends AbstractTestCase
2323
public function testWithEvents(): void
2424
{
2525
Current::$server = 2;
26-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
2726
Current::$database = 'test_db';
2827
Config::getInstance()->selectedServer['DisableIS'] = true;
2928

@@ -193,7 +192,6 @@ public function testWithEvents(): void
193192
public function testWithoutEvents(): void
194193
{
195194
Current::$server = 2;
196-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
197195
Current::$database = 'test_db';
198196
Config::getInstance()->selectedServer['DisableIS'] = true;
199197

tests/unit/Controllers/Database/RoutinesControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ final class RoutinesControllerTest extends AbstractTestCase
2424
public function testWithRoutines(): void
2525
{
2626
Current::$server = 2;
27-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
2827
Current::$database = 'test_db';
2928
Config::getInstance()->selectedServer['DisableIS'] = true;
3029

@@ -246,7 +245,6 @@ public function testWithRoutines(): void
246245
public function testWithoutRoutines(): void
247246
{
248247
Current::$server = 2;
249-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
250248
Current::$database = 'test_db';
251249
Config::getInstance()->selectedServer['DisableIS'] = true;
252250

tests/unit/Controllers/GisDataEditorControllerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ protected function setUp(): void
2323
{
2424
parent::setUp();
2525

26-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
2726
Current::$database = 'db';
2827
Current::$table = 'table';
2928

tests/unit/Controllers/Triggers/IndexControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ final class IndexControllerTest extends AbstractTestCase
2626
public function testWithTriggers(): void
2727
{
2828
Current::$server = 2;
29-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
3029
Current::$database = 'test_db';
3130
Config::getInstance()->selectedServer['DisableIS'] = true;
3231

@@ -161,7 +160,6 @@ public function testWithTriggers(): void
161160
public function testWithoutTriggers(): void
162161
{
163162
Current::$server = 2;
164-
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
165163
Current::$database = 'test_db';
166164
Config::getInstance()->selectedServer['DisableIS'] = true;
167165

0 commit comments

Comments
 (0)