Skip to content

Commit 4d3b0a3

Browse files
committed
Typed constants
1 parent d924db2 commit 4d3b0a3

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/XMLSchema/Type/Interface/AbstractAnySimpleType.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
*/
1717
abstract class AbstractAnySimpleType implements ValueTypeInterface
1818
{
19-
/** @var string */
20-
public const SCHEMA_TYPE = 'anySimpleType';
19+
public const string SCHEMA_TYPE = 'anySimpleType';
2120

22-
/** @var string */
23-
public const SCHEMA_NAMESPACEURI = 'http://www.w3.org/2001/XMLSchema';
21+
public const string SCHEMA_NAMESPACEURI = 'http://www.w3.org/2001/XMLSchema';
2422

25-
/** @var string */
26-
public const SCHEMA_NAMESPACE_PREFIX = 'xs';
23+
public const string SCHEMA_NAMESPACE_PREFIX = 'xs';
2724

2825

2926
/**

src/XMLSchema/XML/Constants/NS.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
final class NS
88
{
9-
public const ANY = '##any';
9+
public const string ANY = '##any';
1010

11-
public const LOCAL = '##local';
11+
public const string LOCAL = '##local';
1212

13-
public const OTHER = '##other';
13+
public const string OTHER = '##other';
1414

15-
public const TARGETNAMESPACE = '##targetNamespace';
15+
public const string TARGETNAMESPACE = '##targetNamespace';
1616

1717

1818
/** @var string[] */

0 commit comments

Comments
 (0)