Skip to content

Commit 6cb70ec

Browse files
committed
Add stream context to the FileGetContents retriever
1 parent 87b54b4 commit 6cb70ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Uri/Retrievers/FileGetContents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function retrieve($uri)
3333
'header' => "Accept: " . Validator::SCHEMA_MEDIA_TYPE
3434
)));
3535

36-
$response = file_get_contents($uri);
36+
$response = file_get_contents($uri, null, $context);
3737
if (false === $response) {
3838
throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
3939
}

0 commit comments

Comments
 (0)