Update the phpstan and psalm baseline

This commit is contained in:
William Desportes 2026-03-17 13:40:19 +01:00
parent 23f6245775
commit e454326296
No known key found for this signature in database
GPG Key ID: 70684F4717D49A31
2 changed files with 10 additions and 8 deletions

View File

@ -9441,7 +9441,7 @@ parameters:
-
message: '#^Argument of an invalid type SimpleXMLElement\|null supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 2
count: 1
path: src/Plugins/Import/ImportXml.php
-
@ -9456,12 +9456,6 @@ parameters:
count: 1
path: src/Plugins/Import/ImportXml.php
-
message: '#^Cannot access property \$table on SimpleXMLElement\|null\.$#'
identifier: property.nonObject
count: 1
path: src/Plugins/Import/ImportXml.php
-
message: '#^Cannot call method attributes\(\) on SimpleXMLElement\|null\.$#'
identifier: method.nonObject
@ -16419,7 +16413,7 @@ parameters:
Use dependency injection instead\.$#
'''
identifier: staticMethod.deprecated
count: 1
count: 3
path: tests/unit/PluginsTest.php
-

View File

@ -6286,6 +6286,12 @@
<PossiblyUnusedReturnValue>
<code><![CDATA[string[]]]></code>
</PossiblyUnusedReturnValue>
<RedundantCondition>
<code><![CDATA[$databaseXml->table]]></code>
</RedundantCondition>
<TypeDoesNotContainType>
<code><![CDATA[[]]]></code>
</TypeDoesNotContainType>
<UnnecessaryVarAnnotation>
<code><![CDATA[SimpleXMLElement]]></code>
<code><![CDATA[SimpleXMLElement]]></code>
@ -10296,6 +10302,8 @@
<DeprecatedMethod>
<code><![CDATA[Config::getInstance()]]></code>
<code><![CDATA[DatabaseInterface::getInstance($config)]]></code>
<code><![CDATA[DatabaseInterface::getInstance($config)]]></code>
<code><![CDATA[DatabaseInterface::getInstance($config)]]></code>
</DeprecatedMethod>
<PropertyTypeCoercion>
<code><![CDATA[Config::getInstance()->settings]]></code>