chore: Code cleanup of Shopware\Components\Plugin\XmlReader namespace #733
Annotations
10 errors
Run make check-code:
engine/Shopware/Bundle/ContentTypeBundle/Services/XmlReader/ContentTypesReader.php#L262
Method Shopware\Bundle\ContentTypeBundle\Services\XmlReader\ContentTypesReader::xmlToArray() should return array but returns array<string, array|string|null>|string|null.
|
Run make check-code:
engine/Shopware/Components/Plugin/XmlReader/XmlPluginReader.php#L106
Cannot assign offset non-falsy-string to array<string, array<int, string|null>>|string.
|
Run make check-code:
engine/Shopware/Components/Plugin/XmlReader/XmlPluginReader.php#L106
Cannot assign offset string to array<string, array<string, array<int, string|null>>|string>|string.
|
Run make check-code:
engine/Shopware/Components/Plugin/XmlReader/XmlReaderBase.php#L67
Method Shopware\Components\Plugin\XmlReader\XmlReaderBase::parseTranslatableNodeList() has parameter $list with generic class DOMNodeList but does not specify its types: TNode
|
Run make check-code:
engine/Shopware/Components/Plugin/XmlReader/XmlReaderBase.php#L161
Method Shopware\Components\Plugin\XmlReader\XmlReaderBase::parseStoreNodeList() has parameter $list with generic class DOMNodeList but does not specify its types: TNode
|
Run make check-code:
engine/Shopware/Components/Plugin/XmlReader/XmlReaderBase.php#L180
Method Shopware\Components\Plugin\XmlReader\XmlReaderBase::parseOptionsNodeList() has parameter $optionsList with generic class DOMNodeList but does not specify its types: TNode
|
Run make check-code:
tests/Unit/Components/Plugin/XmlReader/StoreValueParser/StoreExtjsValueParserTest.php#L54
Property Shopware\Tests\Unit\Components\Plugin\XmlReader\StoreValueParser\StoreExtjsValueParserTest::$parser (Shopware\Components\Plugin\XmlReader\StoreValueParser\StoreXmlValueParser) does not accept Shopware\Components\Plugin\XmlReader\StoreValueParser\StoreValueParserInterface.
|
Run make check-code:
tests/Unit/Components/Plugin/XmlReader/StoreValueParser/StoreExtjsValueParserTest.php#L92
Method Shopware\Tests\Unit\Components\Plugin\XmlReader\StoreValueParser\StoreExtjsValueParserTest::getStoreElement() should return DOMElement but returns DOMNode|null.
|
Run make check-code:
tests/Unit/Components/Plugin/XmlReader/StoreValueParser/StoreXmlValueParserTest.php#L43
Method Shopware\Tests\Unit\Components\Plugin\XmlReader\StoreValueParser\StoreXmlValueParserTest::__construct() has parameter $data with no value type specified in iterable type array.
|
Run make check-code:
tests/Unit/Components/Plugin/XmlReader/StoreValueParser/StoreXmlValueParserTest.php#L43
Method Shopware\Tests\Unit\Components\Plugin\XmlReader\StoreValueParser\StoreXmlValueParserTest::__construct() has parameter $name with no type specified.
|
Loading