Skip to content

Commit 83c4495

Browse files
Merge pull request #20434 from kamil-tekiela/Fix-PHP-8.6-deprecations-6.0
Fix php 8.6 deprecations 6.0
2 parents 5d6c48e + 1de0965 commit 83c4495

4 files changed

Lines changed: 287 additions & 293 deletions

File tree

‎phpstan-baseline.neon‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16179,15 +16179,6 @@ parameters:
1617916179
count: 1
1618016180
path: tests/unit/Plugins/Schema/SvgRelationSchemaTest.php
1618116181

16182-
-
16183-
message: '''
16184-
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
16185-
Use dependency injection instead\.$#
16186-
'''
16187-
identifier: staticMethod.deprecated
16188-
count: 1
16189-
path: tests/unit/Plugins/Transformations/TransformationPluginsTest.php
16190-
1619116182
-
1619216183
message: '#^Method PhpMyAdmin\\Tests\\Plugins\\Transformations\\TransformationPluginsTest\:\:testTransformation\(\) has parameter \$applyArgs with no value type specified in iterable type array\.$#'
1619316184
identifier: missingType.iterableValue

‎psalm-baseline.xml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10144,9 +10144,6 @@
1014410144
</DeprecatedMethod>
1014510145
</file>
1014610146
<file src="tests/unit/Plugins/Transformations/TransformationPluginsTest.php">
10147-
<DeprecatedMethod>
10148-
<code><![CDATA[Config::getInstance()]]></code>
10149-
</DeprecatedMethod>
1015010147
<InvalidArgument>
1015110148
<code><![CDATA[testTransformation]]></code>
1015210149
</InvalidArgument>

‎tests/unit/FooterTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testRemoveRecursion(): void
7878
$object->childIterator = new ArrayIterator();
7979
$object->child->parent = $object;
8080

81-
(new ReflectionMethod(Footer::class, 'removeRecursion'))->invokeArgs($this->object, [&$object]);
81+
(new ReflectionMethod(Footer::class, 'removeRecursion'))->invokeArgs(null, [&$object]);
8282
self::assertSame(
8383
'{"child":{"parent":"***RECURSION***"},"childIterator":"***ITERATOR***"}',
8484
json_encode($object),

0 commit comments

Comments
 (0)