File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
lib/internal/Magento/Framework/Setup/Declaration/Schema Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function __construct(
5050 }
5151
5252 /**
53- * { @inheritdoc}
53+ * @inheritdoc
5454 */
5555 public function create (array $ data )
5656 {
@@ -63,7 +63,7 @@ public function create(array $data)
6363 }
6464
6565 if (isset ($ data ['default ' ])) {
66- $ data ['default ' ] = (int ) $ data ['default ' ];
66+ $ data ['default ' ] = $ data [ ' default ' ] !== ' null ' ? (int ) $ data ['default ' ] : null ;
6767 }
6868
6969 return $ this ->objectManager ->create ($ this ->className , $ data );
Original file line number Diff line number Diff line change 1717 Size is 4 bytes.
1818 </xs : documentation >
1919 </xs : annotation >
20- <xs : attribute name =" default" type =" xs:integer" />
20+ <xs : attribute name =" default" >
21+ <xs : simpleType >
22+ <xs : restriction base =" xs:string" >
23+ <xs : pattern value =" \d+|null" />
24+ </xs : restriction >
25+ </xs : simpleType >
26+ </xs : attribute >
2127 <xs : attribute name =" padding" >
2228 <xs : annotation >
2329 <xs : documentation >
You can’t perform that action at this time.
0 commit comments