-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Filesystem::joinPaths() #33375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filesystem::joinPaths() #33375
Conversation
tomasfejfar
commented
Aug 28, 2019
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 4.4 for features |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #26523 |
License | MIT |
Doc PR | symfony/symfony-docs#12803 |
37fac6a
to
fcc6eaa
Compare
fcc6eaa
to
8c632a9
Compare
@javiereguiluz let me know what you think. If it makes sense like this, I'll add docs PR... I also thought about adding another "normalization" function that can normalize separators in any string ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would love to get this merged
@@ -24,6 +24,27 @@ class Filesystem | |||
{ | |||
private static $lastError; | |||
|
|||
public static function joinPaths(string ...$pathSegments): string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A description including an example would be helpful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the docs I've just created help? symfony/symfony-docs#12803
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing but the method itself should have a description in the phpdoc too
I've had a look at existing logic into the wild for similar functions, and I think the currently proposed one is too simplistic: eg golang resolves |