Skip to content

Commit 7b3c2c2

Browse files
committed
style: Correct PHPStan found errors
1 parent 2b489ea commit 7b3c2c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/JsonSchema/DraftIdentifiers.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
namespace JsonSchema;
66

77
/**
8-
* @extends Enum<DraftIdentifiers::*>
9-
*
108
* @method static DraftIdentifiers DRAFT_3()
119
* @method static DraftIdentifiers DRAFT_4()
1210
* @method static DraftIdentifiers DRAFT_6()
@@ -38,9 +36,9 @@ public function toConstraintName(): string
3836
return 'draft2019-09';
3937
case self::DRAFT_2020_12:
4038
return 'draft2020-12';
39+
default:
40+
throw new \Exception('Unsupported schema URI: ' . $this->getValue());
4141
}
42-
43-
throw new \Exception('Unsupported schema URI: ' . $this->getValue());
4442
}
4543

4644
public function withoutFragment(): string

0 commit comments

Comments
 (0)