We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2f01d commit ef3ab20Copy full SHA for ef3ab20
Magento2/Sniffs/Legacy/WidgetXMLSniff.php
@@ -53,7 +53,7 @@ public function process(File $phpcsFile, $stackPtr)
53
if (!property_exists($element->attributes(), 'type')) {
54
continue;
55
}
56
- $type = $element['type'];
+ $type = (string) $element['type'];
57
if (preg_match('/\//', $type)) {
58
$phpcsFile->addError(
59
"Factory name detected: {$type}.",
0 commit comments