Skip to content

Commit

Permalink
bugfix #115
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 8, 2018
1 parent 51b7f8d commit c6f218c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions docs/5.0/components/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ $path = new Path('path/to/./the/../the/sky%7bfoo%7d');
$newPath = $raw_path->withoutDotSegments();
echo $path; //displays 'path/to/./the/../the/sky%7bfoo%7d'
echo $newPath; //displays 'path/to/the/sky%7Bfoo%7D'
$newPath->sameValueAs($path); //returns false;
~~~

### Removing empty segments
Expand All @@ -122,7 +121,6 @@ $path = new Path("path////to/the/sky//");
$newPath = $path->withoutEmptySegments();
echo $path; //displays 'path////to/the/sky//'
echo $newPath; //displays 'path/to/the/sky/'
$newPath->sameValueAs($path); //returns false;
~~~

### Manipulating the trailing slash
Expand Down
2 changes: 1 addition & 1 deletion docs/5.0/uri/extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Mailto extends AbstractUri

$path = implode(',', array_map('rawurlencode', $emails));

return new static('mailto:'.$path);
return new static::createFromComponents(['scheme' => mailto', 'path' => $path]);
}
}
~~~
Expand Down

0 comments on commit c6f218c

Please sign in to comment.