Skip to content

Commit af14372

Browse files
shmaxbighappyface
authored andcommitted
add enum wrapper (jsonrainbow#375)
1 parent c44609a commit af14372

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/JsonSchema/ConstraintError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use JsonSchema\Exception\InvalidArgumentException;
66

7-
class ConstraintError extends \MabeEnum\Enum
7+
class ConstraintError extends Enum
88
{
99
const ADDITIONAL_ITEMS = 'additionalItems';
1010
const ADDITIONAL_PROPERTIES = 'additionalProp';

src/JsonSchema/Enum.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace JsonSchema;
4+
5+
abstract class Enum extends \MabeEnum\Enum
6+
{
7+
}

0 commit comments

Comments
 (0)