We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1235d2e commit 8471636Copy full SHA for 8471636
src/JsonSchema/Uri/Retrievers/FileGetContents.php
@@ -32,8 +32,13 @@ public function retrieve($uri)
32
'method' => 'GET',
33
'header' => "Accept: " . Validator::SCHEMA_MEDIA_TYPE
34
)));
35
-
+
36
+ set_error_handler(function() use ($uri) {
37
+ throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
38
+ });
39
$response = file_get_contents($uri);
40
+ restore_error_handler();
41
42
if (false === $response) {
43
throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
44
}
0 commit comments