Skip to content

Commit

Permalink
Removed usage of realpath() to fix schemas in PHARs
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Jan 14, 2016
1 parent 4437f0e commit 290afcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractJsonRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function __construct($path, $baseDirectory, $validateJson = false, Change
$this->encoder->setEscapeSlash(false);

if ($validateJson) {
$this->schemaPath = realpath(__DIR__.'/../res/schema/path-mappings-schema-1.0.json');
$this->schemaPath = Path::canonicalize(__DIR__.'/../res/schema/path-mappings-schema-1.0.json');
}
}

Expand Down

0 comments on commit 290afcb

Please sign in to comment.