Skip to content

Commit b42e2cd

Browse files
Merge pull request #19799 from MauricioFauth/uninitialized-properties
Inline class properties of TypesByDatabaseVersionTest and Designer\CommonTest
2 parents 515ba9f + 2ca6ad0 commit b42e2cd

File tree

4 files changed

+235
-449
lines changed

4 files changed

+235
-449
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17244,30 +17244,6 @@ parameters:
1724417244
count: 2
1724517245
path: tests/unit/Database/CentralColumnsTest.php
1724617246

17247-
-
17248-
message: '''
17249-
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
17250-
Use dependency injection instead\.$#
17251-
'''
17252-
identifier: staticMethod.deprecated
17253-
count: 4
17254-
path: tests/unit/Database/Designer/CommonTest.php
17255-
17256-
-
17257-
message: '''
17258-
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Dbal\\DatabaseInterface\:
17259-
Use dependency injection instead\.$#
17260-
'''
17261-
identifier: staticMethod.deprecated
17262-
count: 7
17263-
path: tests/unit/Database/Designer/CommonTest.php
17264-
17265-
-
17266-
message: '#^Class PhpMyAdmin\\Tests\\Database\\Designer\\CommonTest has an uninitialized property \$designerCommon\. Give it default value or assign it in the constructor\.$#'
17267-
identifier: property.uninitialized
17268-
count: 1
17269-
path: tests/unit/Database/Designer/CommonTest.php
17270-
1727117247
-
1727217248
message: '''
1727317249
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
@@ -18957,12 +18933,6 @@ parameters:
1895718933
count: 2
1895818934
path: tests/unit/TwoFactorTest.php
1895918935

18960-
-
18961-
message: '#^Class PhpMyAdmin\\Tests\\TypesByDatabaseVersionTest has an uninitialized property \$object\. Give it default value or assign it in the constructor\.$#'
18962-
identifier: property.uninitialized
18963-
count: 1
18964-
path: tests/unit/TypesByDatabaseVersionTest.php
18965-
1896618936
-
1896718937
message: '''
1896818938
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Dbal\\DatabaseInterface\:

psalm-baseline.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10552,21 +10552,6 @@
1055210552
)]]></code>
1055310553
</MixedArgument>
1055410554
</file>
10555-
<file src="tests/unit/Database/Designer/CommonTest.php">
10556-
<DeprecatedMethod>
10557-
<code><![CDATA[Config::getInstance()]]></code>
10558-
<code><![CDATA[Config::getInstance()]]></code>
10559-
<code><![CDATA[Config::getInstance()]]></code>
10560-
<code><![CDATA[Config::getInstance()]]></code>
10561-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10562-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10563-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10564-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10565-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10566-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10567-
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
10568-
</DeprecatedMethod>
10569-
</file>
1057010555
<file src="tests/unit/Database/DesignerTest.php">
1057110556
<DeprecatedMethod>
1057210557
<code><![CDATA[Config::getInstance()]]></code>

0 commit comments

Comments
 (0)