Skip to content

Commit 9d976d7

Browse files
committed
fix enum null
1 parent 36a2687 commit 9d976d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Annotations/AbstractAnnotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function jsonSerialize()
281281
if (isset($data->file)) {
282282
$file = __DIR__.'/../../../../../'.$data->file;
283283
if(is_file($file)){
284-
$_schema = json_decode(file_get_contents($file));
284+
$_schema = json_decode(preg_replace('/([^\"])(null)([^\"])/s','$1"null"$3',file_get_contents($file)));
285285
$schema = new stdClass();
286286
switch($_schema->type){
287287
case 'object':

0 commit comments

Comments
 (0)