Skip to content

Commit

Permalink
handle null case
Browse files Browse the repository at this point in the history
  • Loading branch information
crbanman committed Jan 26, 2021
1 parent f4d055d commit def963c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotation/ApiSubresource.php
Expand Up @@ -42,6 +42,6 @@ public function __construct($maxDepth = null)

return;
}
$this->maxDepth = $maxDepth['maxDepth'];
$this->maxDepth = $maxDepth['maxDepth'] ?? null;
}
}

0 comments on commit def963c

Please sign in to comment.