Skip to content

Commit

Permalink
fix: Fix path forming.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jan 15, 2024
1 parent 0f15c7e commit a6a0e62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.5.12

* test: Reorganize test namespaces.
* fix: Fix path forming.

## 0.5.11

Expand Down
3 changes: 3 additions & 0 deletions src/MainTransformer/MainTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public function transform(
// append path if provided

if ($path !== null) {
if (!\str_starts_with($path, '[')) {
$path = '.' . $path;
}
$context = $context->with($pathContext->append($path));
}

Expand Down

0 comments on commit a6a0e62

Please sign in to comment.