Skip to content
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

Replaced webmozart/path-util dependency with @internal Path::isAbsolute() #60

Merged
merged 4 commits into from
Apr 5, 2022

Conversation

Ocramius
Copy link
Collaborator

@Ocramius Ocramius commented Apr 5, 2022

This imports sources from webmozart/path-util: since the license
and authors are the same, no further license additions are necessary.

Ref: https://github.com/webmozart/path-util/blob/6099b5238073f87f246863fd58c2e447acfc0d24/tests/PathTest.php
Ref: https://github.com/webmozart/path-util/blob/6099b5238073f87f246863fd58c2e447acfc0d24/src/Path.php

Fixes #59
Fixes #57

@Ocramius Ocramius added this to the 4.5.0 milestone Apr 5, 2022
@Ocramius Ocramius requested a review from Nek- April 5, 2022 12:34
@Ocramius Ocramius force-pushed the feature/remove-path-util-dependency branch from 9040891 to e4553dd Compare April 5, 2022 13:15
@Ocramius
Copy link
Collaborator Author

Ocramius commented Apr 5, 2022

Interesting: tests failing on windows due to the phpvfscomposer:// stuff 🤔

Really annoying overall - composer replacing everything is getting really painful.

@Ocramius Ocramius force-pushed the feature/remove-path-util-dependency branch from e4553dd to 1d7dbf7 Compare April 5, 2022 13:25
Ocramius added 2 commits April 5, 2022 15:28
This is effectively re-introducing `Path::normalize()` from `webmozart/path-util`, but without the dependency requirement
src/Glob.php Show resolved Hide resolved
src/Glob.php Show resolved Hide resolved
src/Path.php Show resolved Hide resolved
@Nek-
Copy link
Collaborator

Nek- commented Apr 5, 2022

Nice one. I'm fine with it, just some notice you may want to take a look at. But you can merge it. Thank you very much @Ocramius .

@Ocramius
Copy link
Collaborator Author

Ocramius commented Apr 5, 2022

I'll roll it as-is (in a release) for now: #28 should highlight these redundant casts in future, and we can adapt there 👍

@Ocramius
Copy link
Collaborator Author

Ocramius commented Apr 5, 2022

Thanks for the review, @Nek-!

@Ocramius Ocramius merged commit 287cba1 into 4.5.x Apr 5, 2022
@Ocramius Ocramius deleted the feature/remove-path-util-dependency branch April 5, 2022 21:52
@williamdes
Copy link

williamdes commented Apr 6, 2022

Hi @Ocramius
A nice PR!
Can someone archive the path util repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
3 participants