Skip to content

Commit cc5c930

Browse files
committed
Fixed bug #2151 : XML schema not updated with the new array property syntax
1 parent 32351dd commit cc5c930

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
5656
- Fixed bug #2143 : PSR2.Namespaces.UseDeclaration does not properly fix "use function" and "use const" statements
5757
-- Thanks to Chris Wilkinson for the patch
5858
- Fixed bug #2144 : Squiz.Arrays.ArrayDeclaration does incorrect align calculation in array with cyrillic keys
59+
- Fixed bug #2151 : XML schema not updated with the new array property syntax
5960
</notes>
6061
<contents>
6162
<dir name="/">

phpcs.xsd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@
7575
<xs:sequence>
7676
<xs:element name="property" maxOccurs="unbounded" minOccurs="1">
7777
<xs:complexType>
78+
<xs:sequence>
79+
<xs:element name="element" maxOccurs="unbounded" minOccurs="0">
80+
<xs:complexType>
81+
<xs:attribute name="key" type="xs:string"></xs:attribute>
82+
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
83+
</xs:complexType>
84+
</xs:element>
85+
</xs:sequence>
7886
<xs:attribute name="type">
7987
<xs:simpleType>
8088
<xs:restriction base="xs:string">
@@ -83,7 +91,7 @@
8391
</xs:simpleType>
8492
</xs:attribute>
8593
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
86-
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
94+
<xs:attribute name="value" type="xs:string"></xs:attribute>
8795
</xs:complexType>
8896
</xs:element>
8997
</xs:sequence>

0 commit comments

Comments
 (0)